#[non_exhaustive]pub struct SetProviderRequest {
pub provider_id: ProviderId,
pub api_type: LlmProtocol,
pub base_url: String,
pub headers: HashMap<String, String>,
pub meta: Option<Map<String, Value>>,
}unstable_protocol_v2 only.Expand description
UNSTABLE
This capability is not part of the spec yet, and may be removed or changed at any point.
Request parameters for providers/set.
Replaces the full configuration for one provider ID.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.provider_id: ProviderIdProvider ID to configure.
api_type: LlmProtocolProtocol type for this provider.
base_url: StringBase URL for requests sent through this provider.
headers: HashMap<String, String>Full headers map for this provider. May include authorization, routing, or other integration-specific headers.
meta: Option<Map<String, Value>>The _meta property is reserved by ACP to allow clients and agents to attach additional metadata to their interactions. Implementations MUST NOT make assumptions about values at these keys.
See protocol docs: Extensibility
Implementations§
Source§impl SetProviderRequest
impl SetProviderRequest
Sourcepub fn new(
provider_id: impl Into<ProviderId>,
api_type: LlmProtocol,
base_url: impl Into<String>,
) -> SetProviderRequest
Available on crate feature unstable_llm_providers only.
pub fn new( provider_id: impl Into<ProviderId>, api_type: LlmProtocol, base_url: impl Into<String>, ) -> SetProviderRequest
unstable_llm_providers only.Builds SetProviderRequest with the required request fields set; optional fields start unset or empty.
Sourcepub fn headers(self, headers: HashMap<String, String>) -> SetProviderRequest
Available on crate feature unstable_llm_providers only.
pub fn headers(self, headers: HashMap<String, String>) -> SetProviderRequest
unstable_llm_providers only.Full headers map for this provider. May include authorization, routing, or other integration-specific headers.
Sourcepub fn meta(
self,
meta: impl IntoOption<Map<String, Value>>,
) -> SetProviderRequest
Available on crate feature unstable_llm_providers only.
pub fn meta( self, meta: impl IntoOption<Map<String, Value>>, ) -> SetProviderRequest
unstable_llm_providers only.The _meta property is reserved by ACP to allow clients and agents to attach additional metadata to their interactions. Implementations MUST NOT make assumptions about values at these keys.
See protocol docs: Extensibility
Trait Implementations§
Source§impl Clone for SetProviderRequest
impl Clone for SetProviderRequest
Source§fn clone(&self) -> SetProviderRequest
fn clone(&self) -> SetProviderRequest
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 SetProviderRequest
impl Debug for SetProviderRequest
Source§impl<'de> Deserialize<'de> for SetProviderRequest
impl<'de> Deserialize<'de> for SetProviderRequest
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<SetProviderRequest, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<SetProviderRequest, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
impl Eq for SetProviderRequest
Source§impl JsonRpcMessage for SetProviderRequest
impl JsonRpcMessage for SetProviderRequest
Source§fn matches_method(method: &str) -> bool
fn matches_method(method: &str) -> bool
Source§fn to_untyped_message(&self) -> Result<UntypedMessage, Error>
fn to_untyped_message(&self) -> Result<UntypedMessage, Error>
Source§impl JsonRpcRequest for SetProviderRequest
impl JsonRpcRequest for SetProviderRequest
Source§type Response = SetProviderResponse
type Response = SetProviderResponse
Source§impl JsonSchema for SetProviderRequest
impl JsonSchema for SetProviderRequest
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read moreSource§impl PartialEq for SetProviderRequest
impl PartialEq for SetProviderRequest
Source§impl Serialize for SetProviderRequest
impl Serialize for SetProviderRequest
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
impl StructuralPartialEq for SetProviderRequest
Auto Trait Implementations§
impl Freeze for SetProviderRequest
impl RefUnwindSafe for SetProviderRequest
impl Send for SetProviderRequest
impl Sync for SetProviderRequest
impl Unpin for SetProviderRequest
impl UnsafeUnpin for SetProviderRequest
impl UnwindSafe for SetProviderRequest
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> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.