API Reference LLM v#0.1.0

Copy Markdown View Source

Modules

LLM

Lightweight Elixir client for LLM APIs.

Request context: system prompt, messages, and tools.

Behaviour for wire format translation between normalized messages and provider APIs.

Anthropic Messages API dialect.

Google Gemini API dialect.

OpenAI Chat Completions dialect.

OpenAI Responses API dialect.

HTTP client behaviour for LLM API calls.

Default Req adapter for LLM.HTTPClient.

Normalized message format across all providers.

Provider configuration behaviour.

Built-in provider presets.

Resolve a provider specification into a full provider config.

Normalized response from LLM.

Stream handling for LLM API responses.

A text chunk from a streaming response.

Error chunk from a streaming response.

Stop event from a streaming response.

A thinking/reasoning chunk from a streaming response.

A tool call chunk from a streaming response.

Tool definition behaviour and inline tool creation.

Token usage information.