Skip to main content
Shows how to use With*ExecutionConfig options to give each agent loop operation its own timeout and max attempts instead of relying on the SDK defaults. Source: examples/agent_with_execution_config/

What it demonstrates

  • WithLLMExecutionConfig — tighter LLM timeout, up to 3 attempts
  • WithToolExecutionConfig — short tool deadline, single attempt
  • WithSubAgentExecutionConfig — explicit sub-agent ceiling of agent run timeout
  • Zero fields fall back to SDK defaults — only set what you want to change

Run

From examples/:

Key code

Expected output

Learn more

Execution Config

Full feature docs — defaults table, retry backoff, runtime behavior

Timeouts & Modes

Agent run timeout, approval timeout, and agent modes