Skip to main content

Module llm

Module llm 

Source
Expand description

LLM client factory trait and registry.

LlmClientFactory is the extension point for custom LLM providers. LlmClient defines the chat interface that all providers implement. LlmRegistry provides string-keyed lookup for provider factories.

Structs§

ChatResponse
Response from a chat completion request.
LlmRegistry
Registry for LLM providers (string-keyed).
Message
A single message in a chat conversation.
ModelInfo
Information about a model available on a provider.
TokenUsage
Token usage statistics from the LLM.
ToolDefinition
A tool (function) exposed to the LLM for action execution.

Enums§

StreamEvent
Events emitted during a streaming LLM response.

Traits§

LlmClient
Unified interface for sending chat messages to any LLM provider.
LlmClientFactory
Factory that creates LLM client instances from configuration.