Expand description
Ricecoder AI Providers - Unified abstraction layer for multiple AI providers
This crate provides a consistent interface for interacting with different AI providers (OpenAI, Anthropic, ollama, Google, etc.) without changing your workflow.
Re-exports§
pub use api_key::ApiKeyManager;pub use audit_log::AuditEventType;pub use audit_log::AuditLogger;pub use audit_log::AuditLogEntry;pub use cache::ProviderCache;pub use error::ProviderError;pub use health_check::HealthCheckCache;pub use health_check::HealthCheckResult;pub use models::Capability;pub use models::ChatRequest;pub use models::ChatResponse;pub use models::FinishReason;pub use models::Message;pub use models::ModelInfo;pub use models::TokenUsage;pub use provider::Provider;pub use provider::ProviderManager;pub use provider::ProviderRegistry;pub use providers::AnthropicProvider;pub use providers::GoogleProvider;pub use providers::OllamaProvider;pub use providers::OpenAiProvider;pub use providers::ZenProvider;pub use rate_limiter::ExponentialBackoff;pub use rate_limiter::RateLimiterRegistry;pub use rate_limiter::TokenBucketLimiter;pub use redaction::contains_sensitive_info;pub use redaction::redact;pub use redaction::Redacted;pub use redaction::RedactionFilter;pub use security_headers::SecurityHeadersBuilder;pub use security_headers::SecurityHeadersValidator;pub use token_counter::TokenCounter;pub use token_counter::TokenCounterTrait;
Modules§
- api_key
- API key management for secure credential handling and storage
- audit_
log - Audit logging for security events
- cache
- Provider response caching layer
- config
- Configuration management for providers
- error
- Error types for the providers module
- health_
check - Health check system with caching and timeout support
- models
- Data models for providers
- provider
- Provider trait and registry
- providers
- Provider implementations for various AI services
- rate_
limiter - Rate limiting for API calls
- redaction
- Key redaction and safety utilities
- security_
headers - Security headers for HTTP responses
- token_
counter - Token counting utilities for different providers