Skip to main content

Crate cognate_providers

Crate cognate_providers 

Source
Expand description

Cognate Providers — concrete LLM provider implementations.

§Providers

ProviderStructChatStreamToolsEmbeddings
OpenAIOpenAiProvider
AnthropicAnthropicProvider

§Resilience

Re-exports§

pub use anthropic::AnthropicProvider;
pub use costs::ModelCost;
pub use fallback::FallbackProvider;
pub use openai::OpenAiProvider;
pub use retry::with_retry;
pub use retry::RetryConfig;
pub use sse::SseStream;

Modules§

anthropic
Anthropic provider implementation.
costs
Model pricing constants.
fallback
Transparent provider fallback.
openai
OpenAI provider implementation.
retry
Retry logic with exponential backoff
sse
Server-Sent Events (SSE) streaming parser

Constants§

DEFAULT_TIMEOUT
Default request timeout applied when no explicit timeout is configured.

Functions§

create_http_client
Build a reqwest client with standard Cognate defaults.