Expand description
Model integration module for Anda Engine
This module provides implementations for various AI model providers, including:
- OpenAI (completion and embedding models)
- DeepSeek (completion models)
- Cohere (embedding models)
Each provider implementation includes:
- Client configuration and management
- API request/response handling
- Conversion to Anda’s internal data structures
The module is designed to be extensible, allowing easy addition of new model providers
while maintaining a consistent interface through the CompletionFeaturesDyn and
EmbeddingFeaturesDyn traits.
Re-exports§
pub use reqwest;
Modules§
- anthropic
- Anthropic Claude API client implementation for Anda Engine
- cohere
- Cohere API client and Anda integration
- deepseek
- DeepSeek API client implementation for Anda Engine
- doubao
- Doubao Seed API client implementation for Anda Engine
- gemini
- Gemini Moonshot API client implementation for Anda Engine
- kimi
- Kimi Moonshot API client implementation for Anda Engine
- mimo
- Xiaomi Mimo API client implementation for Anda Engine
- openai
- OpenAI API client implementation for Anda Engine
- xai
- Grok API client implementation for Anda Engine
Structs§
- AnyHost
- Mock
Implemented - A mock implementation for testing purposes
- Model
- Main model struct that combines embedding and completion capabilities
- Models
- Thread-safe model registry used by the engine.
- NotImplemented
- A placeholder implementation for unimplemented features
- Proxy
- Configuration of a proxy that a
Clientshould pass requests to.
Traits§
- Completion
Features Dyn - Trait for dynamic completion features that can be used across threads
- Embedding
Features Dyn - Trait for dynamic embedding features that can be used across threads
Functions§
- request_
client_ builder - Creates a new reqwest client builder with default settings