> ## 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.

# LLM Error • AI Agent SDK

> LLMError: LLM interaction failed.

# LLMError

> Defined in the [**errors**](../modules/errors) module.

<Badge color="blue">AI Agent</Badge>

LLM interaction failed.

Distinguishes between rate limits (retryable) vs model errors (fatal).

## Constructor

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

<ParamField query="model_name" type="str" required={false} default="'unknown'">
  No description available.
</ParamField>

<ParamField query="agent_id" type="str" required={false} default="'unknown'">
  No description available.
</ParamField>

<ParamField query="run_id" type="Optional[str]" required={false}>
  No description available.
</ParamField>

<ParamField query="error_category" type="AgentErrorKind" required={false} default="'unknown'">
  No description available.
</ParamField>

<ParamField query="is_retryable" type="bool" required={false} default="False">
  No description available.
</ParamField>

<ParamField query="context" type="Optional" required={false}>
  No description available.
</ParamField>

## Source

<Card title="View on GitHub" icon="github" href="https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-agents/praisonaiagents/errors.py#L155">
  `praisonaiagents/errors.py` at line 155
</Card>

***

## Related Documentation

<CardGroup cols={2}>
  <Card title="Models Overview" icon="microchip" href="/docs/docs/models" />

  <Card title="LLM Configuration" icon="gear" href="/docs/docs/configuration/llm-config" />

  <Card title="Model Router" icon="route" href="/docs/docs/features/model-router" />

  <Card title="Model Failover" icon="shield" href="/docs/docs/features/model-failover" />
</CardGroup>
