pub struct ProviderConfigInput {
pub name: Option<String>,
pub base_url: Option<String>,
pub api_key: Option<String>,
pub api: Option<String>,
pub headers: Option<BTreeMap<String, String>>,
pub auth_header: Option<bool>,
pub models: Option<Vec<ProviderModelDefinition>>,
pub model_overrides: Option<ModelOverrides>,
pub oauth: Option<String>,
}Expand description
Extension / models.json provider registration input.
Mirrors the coding-agent ProviderConfigInput / models.json provider object
fields used by registration and composition. Custom stream handlers are
registered separately via ModelRuntime::register_extension_stream_provider.
Fields§
§name: Option<String>Display name.
base_url: Option<String>Provider base URL.
api_key: Option<String>API-key template (sk-…, $ENV, or !command).
api: Option<String>Default API shape for models that omit api.
headers: Option<BTreeMap<String, String>>Static request headers (templates allowed).
auth_header: Option<bool>Whether to force an Authorization header from the API key.
models: Option<Vec<ProviderModelDefinition>>Explicit model list that replaces built-ins for this provider when set.
model_overrides: Option<ModelOverrides>Per-model overrides applied on top of the effective model list.
oauth: Option<String>OAuth marker used by models.json ("radius"). Extension OAuth handlers
are registered separately by the host; this only affects status labels.
Trait Implementations§
Source§impl Clone for ProviderConfigInput
impl Clone for ProviderConfigInput
Source§fn clone(&self) -> ProviderConfigInput
fn clone(&self) -> ProviderConfigInput
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ProviderConfigInput
impl Debug for ProviderConfigInput
Source§impl Default for ProviderConfigInput
impl Default for ProviderConfigInput
Source§fn default() -> ProviderConfigInput
fn default() -> ProviderConfigInput
Source§impl<'de> Deserialize<'de> for ProviderConfigInput
impl<'de> Deserialize<'de> for ProviderConfigInput
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl PartialEq for ProviderConfigInput
impl PartialEq for ProviderConfigInput
impl StructuralPartialEq for ProviderConfigInput
Auto Trait Implementations§
impl Freeze for ProviderConfigInput
impl RefUnwindSafe for ProviderConfigInput
impl Send for ProviderConfigInput
impl Sync for ProviderConfigInput
impl Unpin for ProviderConfigInput
impl UnsafeUnpin for ProviderConfigInput
impl UnwindSafe for ProviderConfigInput
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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