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§
- Erased
Model - Object-safe wrapper for the
Modeltrait, enabling dynamic dispatch viaArc<dyn ErasedModel>. - Model
- Trait for LLM providers. Supports both synchronous and streaming generation.
Type Aliases§
- Shared
Model - Shared ownership of a model via
Arc<dyn ErasedModel>. Use for storing models in agents or sharing across threads.