preset — a tuned bundle of model, system prompt, search config, and tools — which you then customize with individual settings as needed. This page sets up the call the rest of this section builds on.
Start from a preset
Apreset gives you a working agent in one field.
Customize the system prompt: instructions
A preset ships its own tuned system prompt. The instructions field is the agent’s system prompt — the standing rules that hold for every turn of the loop: role, tone, citation, and grounding rules. They apply regardless of what the user asks on a given turn.
instructions replaces the preset’s system prompt rather than appending to it. Omit instructions to keep the preset’s prompt.
Keep the system prompt lean. Every token here is re-processed on each step of the loop, so it adds up across tool calls. For machine-readable output or retrieval constraints, prefer request parameters (see Structure the output and Give it tools) over prose rules.
Customize the loop: max_steps
An agent run is a loop: the model reasons, optionally calls tools, reads the results, and repeats until it answers. One step is one pass through that cycle — a single model turn that may call tools. max_steps caps how many steps a run may take. Use it to bound runaway loops and to trade latency against depth. When a run reaches the cap, the agent doesn’t error — it makes one final pass to answer from what it has gathered so far.
A low max_steps doesn’t disable tools — it limits how many times the agent can act on what they return. At max_steps: 1 the model still gets one turn and can call a tool, but the run won’t loop back to reason over the result.
max_steps alongside a preset, it overrides the preset’s value, up to the preset’s own ceiling for chat-style presets.
Customize the model: model or models
A preset picks a model for you. When you need full control over which model answers, set one explicitly instead of (or alongside) a preset:
| Field | What it is |
|---|---|
model | A single model in provider/model format, for example openai/gpt-5.5. |
models | A fallback chain of up to 5 models, tried in order until one succeeds. |
models, it takes precedence over model. See Models for the catalog and pricing, and Model fallback for how the chain resolves.
Next steps
Prompt the agent
Split the system prompt from the question, and ground the run.
Presets
See the tuned presets you can start from.