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
- Set them on the agent.
maxStepscaps the model calls per reply,thinkingturns reasoning on or off andtemperatureruns from 0, precise, up to the model's maximum, creative:agents/support.tsimport { 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.",}); - Start the project with
npm run dev. - Open Chat in Studio.
- Pick Support assistant.
- Ask "Can I get a refund on an order I placed yesterday?". You should now see the agent reply.
Try it in a sandbox
Create a project
Set them on the agent
Start the project
Ask it