Tune an agent’s model settings

Cap the model calls an agent makes for one reply, turn its thinking off and set how creative it is.

Before you start

You need an agent. See Create an agent.

Change the settings

  1. Set them on the agent. maxSteps caps the model calls per reply, thinking turns reasoning on or off and temperature runs from 0, precise, up to the model's maximum, creative:
    agents/support.ts
    import { agent } from "veryfront/agent"; export default agent({  id: "support",  name: "Support assistant",  model: "anthropic/claude-haiku-4-5-20251001",  thinking: { enabled: false },  temperature: 0.5,  maxSteps: 5,  system: "Answer customer questions about orders and refunds. Keep replies to two sentences.",});
  2. Start the project with npm run dev.
  3. Open Chat in Studio.
  4. Pick Support assistant.
  5. Ask "Can I get a refund on an order I placed yesterday?". You should now see the agent reply.

Try it in a sandbox

  1. Create a project

  2. Set them on the agent

  3. Start the project

  4. Ask it

Try it out

Next steps