> ## 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 • TypeScript AI Agent SDK

> * LLM - Configuration surface and an OpenAI-compatible base client.

# llm

<Badge color="green">TypeScript AI Agent</Badge>

* LLM - Configuration surface and an OpenAI-compatible base client.
* Python parity with praisonaiagents/llm/llm.py `LLM.__init__`. Every
  constructor parameter of the Python class is accepted here and honoured:
* * Request-shaped options reach the Chat Completions body built by
    \{

- Transport-shaped options reach the client built by
  \{
- `maxIter` bounds the tool-calling loop in \{
- `events` are listeners invoked on request start/end, tool calls, errors
  and retries (Python: litellm callbacks + display callbacks).
- `failoverManager` rotates credentials on retryable failures.
- `promptCaching`, `webFetch` and `claudeMemory` emit the Anthropic-specific
  request shapes Python emits, and are rejected on models that cannot
  carry them rather than silently ignored.
- `auth` resolves credentials from an object, a function or a registered
  named provider.

## Import

```typescript theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
import { llm } from 'praisonai';
```

## Classes

<CardGroup cols={2}>
  <Card title="LLMEvent" icon="brackets-curly" href="../classes/LLMEvent">
    TypeScript LLMEvent class
  </Card>

  <Card title="LLMEventHooks" icon="brackets-curly" href="../classes/LLMEventHooks">
    TypeScript LLMEventHooks class
  </Card>

  <Card title="LLMFailoverProfile" icon="brackets-curly" href="../classes/LLMFailoverProfile">
    TypeScript LLMFailoverProfile class
  </Card>

  <Card title="LLMFailoverManager" icon="brackets-curly" href="../classes/LLMFailoverManager">
    TypeScript LLMFailoverManager class
  </Card>

  <Card title="LLMFailoverDecision" icon="brackets-curly" href="../classes/LLMFailoverDecision">
    TypeScript LLMFailoverDecision class
  </Card>

  <Card title="ClaudeMemoryBackend" icon="brackets-curly" href="../classes/ClaudeMemoryBackend">
    TypeScript ClaudeMemoryBackend class
  </Card>

  <Card title="LLMConfig" icon="brackets-curly" href="../classes/LLMConfig">
    TypeScript LLMConfig class
  </Card>

  <Card title="LLMResponse" icon="brackets-curly" href="../classes/LLMResponse">
    TypeScript LLMResponse class
  </Card>

  <Card title="LLM" icon="brackets-curly" href="../classes/LLM">
    TypeScript LLM class
  </Card>

  <Card title="LLMGenerateOptions" icon="brackets-curly" href="../classes/LLMGenerateOptions">
    TypeScript LLMGenerateOptions class
  </Card>

  <Card title="LLMToolLoopOptions" icon="brackets-curly" href="../classes/LLMToolLoopOptions">
    TypeScript LLMToolLoopOptions class
  </Card>

  <Card title="LLMToolCallRecord" icon="brackets-curly" href="../classes/LLMToolCallRecord">
    TypeScript LLMToolCallRecord class
  </Card>

  <Card title="LLMToolLoopResult" icon="brackets-curly" href="../classes/LLMToolLoopResult">
    TypeScript LLMToolLoopResult class
  </Card>

  <Card title="LLMRequestOptions" icon="brackets-curly" href="../classes/LLMRequestOptions">
    TypeScript LLMRequestOptions class
  </Card>

  <Card title="BaseLLM" icon="brackets-curly" href="../classes/BaseLLM">
    TypeScript BaseLLM class
  </Card>
</CardGroup>

## Functions

<CardGroup cols={2}>
  <Card title="classifyLLMError()" icon="function" href="../functions/classifyLLMError">
    Function definition.
  </Card>

  <Card title="isAnthropicModel()" icon="function" href="../functions/isAnthropicModel">
    Function definition.
  </Card>
</CardGroup>

***

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