Skip to main content

Module llm

Module llm 

Source
Expand description

LLM client types and provider abstractions.

These are pure data types — no HTTP, no browser APIs, no WASM dependencies.

§Modules

  • typesChatMessage, ChatRequest, ChatResponse, AnthropicResponse, SSE types
  • providerLlmProvider enum, LlmConfig with endpoint resolution

Modules§

provider
LLM provider configuration.
types

Structs§

AnthropicResponse
Anthropic Messages API response
ChatMessage
ChatRequest
ChatResponse
OpenAI-compatible chat completion response
LlmConfig
Complete configuration for an LLM client.

Enums§

LlmProvider
Supported LLM providers.