Skip to main content

Module model

Module model 

Source
Expand description

LLM provider abstraction and implementations.

Implement Model to add new providers. Built-in providers (each behind a feature flag): openai, anthropic, gemini, azure, bedrock.

Modules§

anthropic
Anthropic Claude model provider.
openai
OpenAI model provider for the Daimon agent framework.
types
Core message and request types shared across all model providers.

Traits§

ErasedModel
Object-safe wrapper for the Model trait, enabling dynamic dispatch via Arc<dyn ErasedModel>.
Model
Trait for LLM providers. Supports both synchronous and streaming generation.

Type Aliases§

SharedModel
Shared ownership of a model via Arc<dyn ErasedModel>. Use for storing models in agents or sharing across threads.