#[non_exhaustive]pub struct SessionSystemPromptModeCapabilities {
pub override_: Option<SessionSystemPromptOverrideCapabilities>,
pub meta: Option<Meta>,
}Expand description
UNSTABLE
This capability is not part of the spec yet, and may be removed or changed at any point.
System prompt delivery modes the agent supports in addition to append.
append has no entry because every agent advertising
sessionCapabilities.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 or null both 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. Implementations MUST NOT make assumptions about values at these keys.
See protocol docs: Extensibility
Implementations§
Source§impl SessionSystemPromptModeCapabilities
impl SessionSystemPromptModeCapabilities
Sourcepub fn new() -> Self
Available on crate feature unstable_session_system_prompt only.
pub fn new() -> Self
unstable_session_system_prompt only.Builds an empty SessionSystemPromptModeCapabilities; use builder methods to advertise supported sub-capabilities.
Sourcepub fn override_(
self,
override_: impl IntoOption<SessionSystemPromptOverrideCapabilities>,
) -> Self
Available on crate feature unstable_session_system_prompt only.
pub fn override_( self, override_: impl IntoOption<SessionSystemPromptOverrideCapabilities>, ) -> Self
unstable_session_system_prompt only.Whether the agent supports override mode.
Omitted or null both 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
Available on crate feature unstable_session_system_prompt only.
pub fn meta(self, meta: impl IntoOption<Meta>) -> Self
unstable_session_system_prompt 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<'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 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.