Skip to main content

Module config

Module config 

Source
Expand description

Provider credentials, endpoints, and shared transport policy.

Build a ProviderConfig from one ProviderKind and TransportConfig. Configuration constructors are passive; crate::Provider::from_config builds the selected clients, and subsequent operations check real service behavior. ApiKey rejects invalid HTTP-header values and redacts its Debug output. RetryPolicy applies only to operations whose existing semantics permit replay.

Structs§

AnthropicConfig
Anthropic credentials and endpoint configuration.
ApiKey
Validated API key used by provider configuration.
GeminiConfig
Gemini credentials and endpoint configuration.
OllamaConfig
Ollama local or cloud configuration.
OpenAiConfig
OpenAI credentials and endpoint configuration.
ProviderConfig
Provider construction input.
RetryPolicy
Exponential-backoff settings for replayable provider HTTP operations.
TransportConfig
Shared HTTP transport settings used by provider backends.

Enums§

GeminiServiceTier
Gemini request service tier.
ProviderKind
Concrete provider configuration selected for ProviderConfig.