Tool Config • AI Agent SDK

ToolConfig: Configuration for tool execution behavior.

ToolConfig

Defined in the Feature Configs module.

AI Agent

Configuration for tool execution behavior.

Configuration for tool execution behavior including timeout, retry policy, parallel execution, and artifact storage for large outputs.

Diagram

uses

returns

Agent

Tool: ToolConfig

Result

Properties

ResponseField Optional[int]

No description available.

ResponseField Optional

No description available.

ResponseField Optional[bool]

No description available.

ResponseField int

No description available.

ResponseField Optional[int]

No description available.

ResponseField str

No description available.

ResponseField bool

No description available.

ResponseField int

No description available.

ResponseField Optional

No description available.

ResponseField bool

No description available.

ResponseField bool

No description available.

Internal & Generic Methods
  • from_dict: Create ToolConfig from dictionary.
  • to_dict: Convert to dictionary.

Usage

python
# Simple enable with defaults
    Agent(tool_config=ToolConfig())

    # With custom settings
    Agent(tool_config=ToolConfig(
        timeout=60,
        retry_policy=RetryPolicy(max_attempts=5),
        parallel=True,
    ))

    # With artifact storage for large outputs
    Agent(tool_config=ToolConfig(
        output_limit=32000,
        enable_artifacts=True,
        artifact_retention_days=14,
    ))

Source

View on GitHub

praisonaiagents/config/feature_configs.py at line 1232


Related Documentation