LLM • TypeScript AI Agent SDK

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

llm

TypeScript AI Agent

  • 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
import { llm } from 'praisonai';

Classes

Functions


Related Documentation