agent_with_execution_config

command
v0.3.8 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2026 License: Apache-2.0 Imports: 11 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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