> ## Documentation Index
> Fetch the complete documentation index at: https://praison.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Tool Config • AI Agent SDK

> ToolConfig: Configuration for tool execution behavior.

# ToolConfig

> Defined in the [**Feature Configs**](https://praison.ai/docs/sdk/reference/praisonaiagents/modules/feature_configs.md) 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.

```mermaid theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
%%{init: {'theme': 'base', 'themeVariables': { 'primaryColor': '#8B0000', 'primaryTextColor': '#fff', 'primaryBorderColor': '#710101', 'lineColor': '#189AB4', 'secondaryColor': '#189AB4', 'tertiaryColor': '#fff' }}}%%

graph LR
    agent["Agent"] -- "uses" --> tool["Tool: ToolConfig"]
    tool -- "returns" --> result["Result"]
    style tool fill:#189AB4,color:#fff
    style agent fill:#8B0000,color:#fff
    style result fill:#8B0000,color:#fff
```

## Properties

**timeout** `Optional[int]`

No description available.

**retry\_policy** `Optional`

No description available.

**parallel** `Optional[bool]`

No description available.

**output\_limit** `int`

No description available.

**output\_max\_lines** `Optional[int]`

No description available.

**output\_direction** `str`

No description available.

**enable\_artifacts** `bool`

No description available.

**artifact\_retention\_days** `int`

No description available.

**artifact\_store** `Optional`

No description available.

**redact\_secrets** `bool`

No description available.

**allow\_global\_tools** `bool`

No description available.

> [accordion] Internal & Generic Methods
>
> * **from\_dict**: Create ToolConfig from dictionary.
> * **to\_dict**: Convert to dictionary.

## Usage

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
# 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

> [card] [View on GitHub](https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-agents/praisonaiagents/config/feature_configs.py#L1232)
>
> `praisonaiagents/config/feature_configs.py` at line 1232

***

## Related Documentation

> [card] [Tools Concept](https://praison.ai/docs/docs/concepts/tools)

> [card] [Create Custom Tools](https://praison.ai/docs/docs/guides/tools/create-custom-tools)

> [card] [Tool Development](https://praison.ai/docs/docs/tutorials/advanced-tool-development)

> [card] [Configuration Overview](https://praison.ai/docs/docs/configuration/index)

> [card] [Agent Config](https://praison.ai/docs/docs/configuration/agent-config)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.