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

Function

> This function is defined in the [**llm**](https://praison.ai/docs/sdk/reference/typescript/modules/llm.md) module.

## Signature

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

### Returns

**Returns** `LLMErrorKind`

The result of the operation.

## Uses

* `E`

## Source

> [card] [View on GitHub](https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-ts/src/llm/index.ts#L137)
>
> `src/llm/index.ts` at line 137

***

## Related Documentation

> [card] [JS Providers](https://praison.ai/docs/docs/js/providers)

> [card] [JS Providers CLI](https://praison.ai/docs/docs/js/providers-cli)

> [card] [JS Provider Registry](https://praison.ai/docs/docs/js/provider-registry)


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