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 attemptsWithToolExecutionConfig— short tool deadline, single attemptWithSubAgentExecutionConfig— explicit sub-agent ceiling of agent run timeout- Zero fields fall back to SDK defaults — only set what you want to change
Run
Fromexamples/:
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