> ## 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 Timeout Error • AI Agents Framework

> ToolTimeoutError: Raised when a wrapped tool exceeds its per-call timeout.

# ToolTimeoutError

> Defined in the [**Agents Generator**](../modules/agents_generator) module.

<Badge color="purple">AI Agents Framework</Badge>

Raised when a wrapped tool exceeds its per-call timeout.

Preserves the tool's declared return-type contract: instead of silently
downgrading a typed return value to a JSON string, the wrapper raises this
so the framework adapter (a per-adapter concern) can translate it into
whatever its framework expects.

```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: ToolTimeoutError"]
    tool -- "returns" --> result["Result"]
    style tool fill:#189AB4,color:#fff
    style agent fill:#8B0000,color:#fff
    style result fill:#8B0000,color:#fff
```

## Constructor

<ParamField query="tool_name" type="Any" required={true}>
  No description available.
</ParamField>

<ParamField query="timeout_seconds" type="Any" required={true}>
  No description available.
</ParamField>

<ParamField query="background_work_may_continue" type="Any" required={true}>
  No description available.
</ParamField>

## Source

<Card title="View on GitHub" icon="github" href="https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai/praisonai/agents_generator.py#L175">
  `praisonai/agents_generator.py` at line 175
</Card>

***

## Related Documentation

<CardGroup cols={2}>
  <Card title="Tools Concept" icon="wrench" href="/docs/docs/concepts/tools" />

  <Card title="Create Custom Tools" icon="plus" href="/docs/docs/guides/tools/create-custom-tools" />

  <Card title="Tool Development" icon="code" href="/docs/docs/tutorials/advanced-tool-development" />
</CardGroup>
