agent_with_execution_config

command
v0.3.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 27, 2026 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package main demonstrates execution config.

Each agent loop operation (LLM call, tool execute, MCP, sub-agent delegation, etc.) has its own independent timeout and retry budget. This example shows how to override those defaults using With*ExecutionConfig options.

SDK defaults used when no override is set:

LLM          Timeout: 30m  MaxAttempts: 3
ToolAuth     Timeout: 30m  MaxAttempts: 1
ToolExecute  Timeout: 30m  MaxAttempts: 3
MCP          Timeout: 30m  MaxAttempts: 3
A2A          Timeout: 30m  MaxAttempts: 3
Retriever    Timeout: 5m   MaxAttempts: 3
Memory       Timeout: 5m   MaxAttempts: 3
Conversation Timeout: 30s  MaxAttempts: 1
SubAgent     Timeout: (agent run timeout)  MaxAttempts: 1

Zero fields in ExecutionConfig keep the SDK default for that field.

See: docs/features/execution-config.mdx

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL