pub struct ProviderProfile {Show 13 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,
}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 used to encode/decode 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.
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
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ProviderProfile
impl Debug for ProviderProfile
impl Eq for ProviderProfile
Source§impl PartialEq for ProviderProfile
impl PartialEq for ProviderProfile
impl StructuralPartialEq for ProviderProfile
Auto Trait Implementations§
impl Freeze for ProviderProfile
impl RefUnwindSafe for ProviderProfile
impl Send for ProviderProfile
impl Sync for ProviderProfile
impl Unpin for ProviderProfile
impl UnsafeUnpin for ProviderProfile
impl UnwindSafe for ProviderProfile
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more