#[non_exhaustive]pub struct SessionSystemPromptCapabilities {
pub mode: Option<SessionSystemPromptModeCapabilities>,
pub meta: Option<Meta>,
}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.
Capabilities for client-provided system prompts.
Supplying {} means the agent supports systemPrompt on session lifecycle
requests in append mode.
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.mode: Option<SessionSystemPromptModeCapabilities>Delivery modes the agent supports in addition to append.
Optional. Omitted or null both mean the agent supports only append.
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 SessionSystemPromptCapabilities
impl SessionSystemPromptCapabilities
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 SessionSystemPromptCapabilities; use builder methods to advertise supported sub-capabilities.
Sourcepub fn mode(
self,
mode: impl IntoOption<SessionSystemPromptModeCapabilities>,
) -> Self
Available on crate feature unstable_session_system_prompt only.
pub fn mode( self, mode: impl IntoOption<SessionSystemPromptModeCapabilities>, ) -> Self
unstable_session_system_prompt only.Delivery modes the agent supports in addition to append.
Omitted or null both mean the agent supports only append.
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 SessionSystemPromptCapabilities
impl<'de> Deserialize<'de> for SessionSystemPromptCapabilities
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 SessionSystemPromptCapabilities
Source§impl JsonSchema for SessionSystemPromptCapabilities
impl JsonSchema for SessionSystemPromptCapabilities
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 SessionSystemPromptCapabilities
Auto Trait Implementations§
impl Freeze for SessionSystemPromptCapabilities
impl RefUnwindSafe for SessionSystemPromptCapabilities
impl Send for SessionSystemPromptCapabilities
impl Sync for SessionSystemPromptCapabilities
impl Unpin for SessionSystemPromptCapabilities
impl UnsafeUnpin for SessionSystemPromptCapabilities
impl UnwindSafe for SessionSystemPromptCapabilities
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.