Skip to content

Limits, checks & exposure

The Gates tab of the agent editor holds what keeps an agent in bounds: how long and how expensively it may run, the checks its input and answer must pass, which tool calls wait for a person, who may call it, and what it may spend per hour or day.

Everything on this tab except the spend caps belongs to the agent's definition, so it takes effect when you publish the version.

Policies

Field What it does
Max Iterations Turns before the run fails, 1–100, default 10
Max Cost Usd A cost ceiling in US dollars across the run's model calls. 0, the default, means none
Budget Class micro, standard (the default) or unlimited. micro caps each model response at 4,096 tokens and a run at 16 model calls, standard caps a run at 256 model calls, and unlimited sets no call cap
Tool Choice auto (the default), none, required, or name: followed by a tool name
Approve On Budget Park the run for a human approval when a limit is reached, instead of failing it
Parallel Tool Calls Lets the model ask for several tool calls in one turn. On by default

Retry

Retry decides what happens after a transient error, such as a provider error or a timeout:

  • Llm: Attempts, the extra attempts for a model turn that failed this way (0–3, default 1; 0 turns retries off), and Backoff Ms, the wait before the first retry in milliseconds (default 2000), doubled for each further retry.
  • Tools: idempotentOnly (the default) retries only tools whose node declares no side effects or idempotent ones; never retries none. A tool that sends, writes or deletes is never retried: its error goes back to the model.

Context

Context decides how a long conversation is kept within the model's window. Only old tool results are ever shrunk; the brief, the opening task and the memory snapshot are left whole.

Field What it does
Strategy truncate (the default) keeps the head of each old tool result, marked as compacted; none keeps everything. summarize is not available yet, and a version that picks it cannot be saved
Keep Turns The most recent turns kept word for word, 0–100, default 6; 0 also means 6
Head Chars How many characters of an old tool result survive truncation, 200–100,000, default 2,000
Max Input Tokens An estimated input-token ceiling for one model turn. With strategy none, a turn over it fails instead of degrading. 0, the default, means no ceiling

A workflow placement can override these for one node (see Agents in workflows).

Guardrails

Guardrails are checks on what goes into the agent and what comes out:

  • Input checks run once, before the first turn.
  • Output checks run after the model stops calling tools.

Each check has a Name, shown in the run timeline and in the failure reason, and a Kind:

  • expression: a {{…}} template that must be true. It reads input (the opening items), output (the final answer) and turns, and costs nothing.
  • rubric: a model scores the answer against your Criteria, written in prose, and the score must reach the Threshold (0–1).
  • workflow: a workflow of this project receives the answer and replies whether it passed and why.

On Fail is retry (the default), which sends the model back with the reason to revise, or fail, which ends the run. Max Retries is 0–5; empty or 0 means once, so to stop retries, set On Fail to fail. Retries count toward Max Iterations. Input checks never retry: they always fail, because there is no answer yet to revise.

Exposure

Exposure decides who may run the agent. Each switch takes effect when the version is published, except that the list of agents an MCP client sees follows As Mcp Tool as soon as you save (see MCP clients).

Switch Allows Default
As Tool Other agents may add this agent as a tool, or delegate to it On
Chat Run requests: Try it, the REST API and MCP clients On
A2a External A2A clients may reach the agent. Needs A2A turned on for your organization Off
As Mcp Tool The agent is listed on the Crios MCP server, so an AI client connected to Crios can run it Off

See Running agents from outside for the API, MCP and A2A.

Approvals

Approvals summarizes which tools wait for a person before they run, for example send_email — every call waits for approval, or reads No tool call waits for a human. A tool set to Ask when an expression says so is listed as waiting when its expression holds, but for now every call to it waits, as with Ask every time. You set approval per tool on the Tools tab (see Tools); gated calls wait in the approvals inbox.

Spend caps

Spend caps limit the agent's model calls over a window, across all its runs. Each cap sets:

  • Window: Per hour or Per day.
  • What is counted: Cost (USD), Tokens or Model calls.
  • Limit.
  • When reached: Pause until the next window, or Fail the step.

Each cap shows how much of it the current window has used. Caps are not part of the agent's definition: they take effect as soon as you add, change or remove one, without publishing a version. The ceiling for a single run is Max Iterations and Max Cost Usd above, so there is no per-run cap here.