Expand description
Model identifiers, provider variants, and sampling parameters.
The Model type parses from a "provider:model-name" string via FromStr
(e.g., "openrouter:anthropic/claude-sonnet-4") and serialises back to the same format.
Aliased models ("fast,gpt-4.1") let users define shorthand names that resolve
to real model IDs at API-call time.
§Key types
| Type | Role |
|---|---|
Model | Fully-qualified model ID (provider:name); parses bidirectionally |
Provider | LLM backend variant (OpenRouter, Ollama, Anthropic, OpenAI, Connect) |
AliasedModel | Model name with optional aliasing (name,real_name) |
ReasoningLevel | Extended chain-of-thought effort (Off / Low / Medium / High) |
SamplingParams | Extended sampling config (top_p, top_k, min_p, penalties) |
AgentLlmConfig | Complete LLM config for an agent turn (model, temp, reasoning, sampling) |
Structs§
- Agent
LlmConfig - Complete LLM configuration for an agent turn.
- Aliased
Model - A model name with optional aliasing.
- Model
- Fully-qualified model identifier combining a backend
Providerwith anAliasedModel. - Provider
Preferences - Provider-level routing preferences (OpenRouter extension).
- Sampling
Params - Extended sampling parameters beyond just temperature.
Enums§
- ApiKey
- An API key identifier, not a credential value.
- Provider
- LLM backend variant. Used to route completion requests and select the
correct
crate::llm::LlmProviderimplementation from the registry. - Provider
Sort - How to sort provider candidates.
- Quantization
- Quantization level for model weights.
- Reasoning
Level - Extended chain-of-thought / reasoning effort level.