pub struct ModelProviderRuntimeOptions {Show 17 fields
pub auth_profile_override: Option<String>,
pub provider_kind: Option<String>,
pub provider_api_url: Option<String>,
pub zeroclaw_dir: Option<PathBuf>,
pub secrets_encrypt: bool,
pub reasoning_enabled: Option<bool>,
pub reasoning_effort: Option<String>,
pub provider_timeout_secs: Option<u64>,
pub extra_headers: HashMap<String, String>,
pub api_path: Option<String>,
pub provider_max_tokens: Option<u32>,
pub merge_system_into_user: bool,
pub provider_extra: Option<Value>,
pub native_tools: Option<bool>,
pub wire_api: Option<String>,
pub think: Option<bool>,
pub chat_template_kwargs: Option<Value>,
}Fields§
§auth_profile_override: Option<String>§provider_kind: Option<String>Explicit provider implementation from [providers.models.<family>.<alias>].kind.
When unset, provider resolution falls back to the configured family.
provider_api_url: Option<String>§zeroclaw_dir: Option<PathBuf>§secrets_encrypt: bool§reasoning_enabled: Option<bool>§reasoning_effort: Option<String>§provider_timeout_secs: Option<u64>HTTP request timeout in seconds for LLM model_provider API calls.
None uses the model_provider’s built-in default (120s for compatible model_providers).
extra_headers: HashMap<String, String>Extra HTTP headers to include in model_provider API requests.
api_path: Option<String>Custom API path suffix for OpenAI-compatible model_providers (e.g. “/v2/generate” instead of the default “/chat/completions”).
provider_max_tokens: Option<u32>Maximum output tokens for LLM model_provider API requests.
None uses the model_provider’s built-in default.
merge_system_into_user: boolWhen true, system messages are merged into the first user message before
sending. Propagated from ModelProviderConfig::merge_system_into_user.
provider_extra: Option<Value>Extra JSON parameters merged into API request bodies at the top level.
Propagated from ModelProviderConfig::provider_extra.
native_tools: Option<bool>When set, the provider is asked to use its native tool-calling schema instead of OpenAI-compat tool calls. Generic across families.
wire_api: Option<String>Wire protocol to use for this provider.
Some("responses") routes the provider through the OpenResponses
/v1/responses API instead of chat_completions. None uses the
provider’s built-in default (chat_completions for most providers).
think: Option<bool>Enable or disable chain-of-thought thinking. Forwarded as
enable_thinking in the request body. None lets the model decide.
chat_template_kwargs: Option<Value>Passed verbatim as chat_template_kwargs to the llamacpp provider.
Trait Implementations§
Source§impl Clone for ModelProviderRuntimeOptions
impl Clone for ModelProviderRuntimeOptions
Source§fn clone(&self) -> ModelProviderRuntimeOptions
fn clone(&self) -> ModelProviderRuntimeOptions
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ModelProviderRuntimeOptions
impl Debug for ModelProviderRuntimeOptions
Auto Trait Implementations§
impl Freeze for ModelProviderRuntimeOptions
impl RefUnwindSafe for ModelProviderRuntimeOptions
impl Send for ModelProviderRuntimeOptions
impl Sync for ModelProviderRuntimeOptions
impl Unpin for ModelProviderRuntimeOptions
impl UnsafeUnpin for ModelProviderRuntimeOptions
impl UnwindSafe for ModelProviderRuntimeOptions
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more