#[non_exhaustive]pub struct SessionSystemPromptModeCapabilities {
pub override_: Option<SessionSystemPromptOverrideCapabilities>,
pub meta: Option<Meta>,
}unstable_protocol_v2 only.Expand description
System prompt delivery modes the agent supports in addition to append.
append has no entry because every agent advertising session.systemPrompt
supports it.
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.override_: Option<SessionSystemPromptOverrideCapabilities>Whether the agent supports override mode.
Optional. Omitted and null are equivalent and mean the agent does not advertise support.
Supplying {} means the agent supports replacing its built-in default
instructions with the client-provided system prompt.
meta: Option<Meta>The _meta property is reserved by ACP to allow clients and agents to attach additional
metadata to their interactions. Omitted and null are equivalent and mean no metadata.
Implementations MUST NOT assign meaning to keys they do not recognize.
See protocol docs: Extensibility
Implementations§
Source§impl SessionSystemPromptModeCapabilities
impl SessionSystemPromptModeCapabilities
Sourcepub fn new() -> Self
pub fn new() -> Self
Builds an empty SessionSystemPromptModeCapabilities. Use builder methods to advertise supported sub-capabilities.
Sourcepub fn override_(
self,
override_: impl IntoOption<SessionSystemPromptOverrideCapabilities>,
) -> Self
pub fn override_( self, override_: impl IntoOption<SessionSystemPromptOverrideCapabilities>, ) -> Self
Whether the agent supports override mode.
Omitted and null are equivalent and mean the agent does not advertise support.
Supplying {} means the agent supports replacing its built-in default
instructions with the client-provided system prompt.
Sourcepub fn meta(self, meta: impl IntoOption<Meta>) -> Self
pub fn meta(self, meta: impl IntoOption<Meta>) -> Self
The _meta property is reserved by ACP to allow clients and agents to attach additional metadata to their interactions. Implementations MUST NOT assign meaning to keys they do not recognize.
See protocol docs: Extensibility
Trait Implementations§
Source§impl<'de> Deserialize<'de> for SessionSystemPromptModeCapabilities
impl<'de> Deserialize<'de> for SessionSystemPromptModeCapabilities
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>,
impl Eq for SessionSystemPromptModeCapabilities
Source§impl JsonSchema for SessionSystemPromptModeCapabilities
impl JsonSchema for SessionSystemPromptModeCapabilities
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 moreimpl StructuralPartialEq for SessionSystemPromptModeCapabilities
Auto Trait Implementations§
impl Forget for SessionSystemPromptModeCapabilities
impl Freeze for SessionSystemPromptModeCapabilities
impl RefUnwindSafe for SessionSystemPromptModeCapabilities
impl Send for SessionSystemPromptModeCapabilities
impl Sync for SessionSystemPromptModeCapabilities
impl Unpin for SessionSystemPromptModeCapabilities
impl UnsafeUnpin for SessionSystemPromptModeCapabilities
impl UnwindSafe for SessionSystemPromptModeCapabilities
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.