pub struct ProviderProfile {Show 14 fields
pub provider: Symbol,
pub runner_symbol: Symbol,
pub codec: Symbol,
pub default_endpoint: String,
pub models_path: &'static str,
pub chat_path: &'static str,
pub auth: ProviderAuth,
pub default_locality: Symbol,
pub default_model: String,
pub default_timeout: Duration,
pub default_stream: bool,
pub default_tools: bool,
pub default_max_output_bytes: usize,
pub grammar_dialects: Vec<GrammarDialect>,
}Expand description
Data profile for a concrete HTTP model provider.
Fields§
§provider: SymbolOpen provider id such as openai, anthropic, or ollama.
runner_symbol: SymbolDefault runner symbol exposed by the agent library.
codec: SymbolRuntime codec symbol for encoding/decoding provider payloads.
default_endpoint: StringDefault base endpoint. An empty value means the caller must supply one.
models_path: &'static strProvider path that lists models relative to the base endpoint.
chat_path: &'static strProvider path that performs chat inference relative to the base endpoint.
auth: ProviderAuthProvider authentication profile.
default_locality: SymbolDefault runner locality, either local or network.
default_model: StringDefault model name used when the option map does not provide model.
default_timeout: DurationDefault HTTP timeout.
default_stream: boolDefault streaming flag.
default_tools: boolDefault tool-use flag.
default_max_output_bytes: usizeDefault response byte limit.
grammar_dialects: Vec<GrammarDialect>Grammar dialects this provider can enforce directly.
Implementations§
Source§impl ProviderProfile
impl ProviderProfile
Sourcepub fn openai_compatible() -> Self
pub fn openai_compatible() -> Self
Returns the generic OpenAI-compatible fallback profile.
Trait Implementations§
Source§impl Clone for ProviderProfile
impl Clone for ProviderProfile
Source§fn clone(&self) -> ProviderProfile
fn clone(&self) -> ProviderProfile
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more