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

# classify LLM Error • TypeScript AI Agent SDK

> classifyLLMError: API reference for classifyLLMError

# classifyLLMError

<div className="flex items-center gap-2">
  <Badge color="teal">Function</Badge>
</div>

> This function is defined in the [**llm**](../modules/llm) module.

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def classifyLLMError(error: unknown) -> LLMErrorKind
```

### Returns

<ResponseField name="Returns" type="LLMErrorKind">
  The result of the operation.
</ResponseField>

## Uses

* `E`

## Source

<Card title="View on GitHub" icon="github" href="https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-ts/src/llm/index.ts#L137">
  `src/llm/index.ts` at line 137
</Card>

***

## Related Documentation

<CardGroup cols={2}>
  <Card title="JS Providers" icon="server" href="/docs/docs/js/providers" />

  <Card title="JS Providers CLI" icon="terminal" href="/docs/docs/js/providers-cli" />

  <Card title="JS Provider Registry" icon="list" href="/docs/docs/js/provider-registry" />
</CardGroup>
