Skip to main content
Use EXECUTION when an agent needs explicit model choice, response limits, timeout boundaries, concurrency behavior, thinking settings, history windowing, voice settings, or execution-pipeline configuration.

Concept

EXECUTION is the agent-level configuration surface for runtime behavior. It does not decide whether a flow step is reasoning or deterministic; that is handled by step-level REASONING. Instead, EXECUTION controls the environment in which the agent runs: which model to use, how long LLM and tool calls can wait, how many iterations are allowed, how much history is retained, and how concurrent messages are handled. Use explicit settings when the default behavior is not enough for cost, latency, safety, or operational predictability. Keep settings minimal for simple agents. Add settings only when you can explain why the value exists and how it will be tested.

Minimal working example

How it works

The parser accepts both snake_case and some camelCase forms for several execution settings. The compiler lowers the values into the agent execution IR. Runtime components then use that execution contract to bound model calls, tool calls, history, concurrency, and related behavior. The most common settings are:

Common variations

Low-latency support agent

Use a smaller model, low token budget, short LLM timeout, and small history window when the agent handles high-volume support questions.

Careful enterprise agent

Use lower temperature, bounded reasoning iterations, and explicit timeout values when the agent answers regulated, contractual, or account-related questions.

Voice or realtime agent

Use voice-specific execution settings and stricter latency budgets. Test the experience in the voice channel because a setting that works in chat may feel slow on a call.

Agent execution pipeline

Use nested EXECUTION.pipeline only when you need agent routing, classification, short-circuiting, tool filtering, keyword veto, or intent bridging. That is a separate decision from choosing a base model or timeout.

Verification

  • Validate the agent and confirm EXECUTION compiles into the agent execution settings.
  • Test a normal model response and a slow model response against llm_timeout.
  • Test a normal tool call and a slow tool call against tool_timeout.
  • Inspect traces for model, timeout, and execution-path metadata.
  • Load test concurrency settings before using parallel or high queue depths in production.

Production readiness checklist

  • Every non-default setting has an owner and reason.
  • Timeout values match the channel experience and downstream service SLOs.
  • Token limits are high enough for expected answers but low enough for cost control.
  • Iteration limits prevent loops without cutting off valid flows.
  • Fallback behavior is tested, not just configured.
  • Voice settings are tested with real turn-taking and latency expectations.

Common mistakes

Troubleshooting