#[non_exhaustive]pub struct UnknownStateUpdate {
pub background: Option<Vec<BackgroundWork>>,
pub meta: Option<Map<String, Value>>,
}unstable_protocol_v2 only.Expand description
The Agent cannot currently determine foreground activity.
The Agent MUST report this when it can no longer observe the session’s foreground work. Silence alone is not lost observability. The Client MUST stop presenting the previous state as confirmed current activity, but MAY retain it as last known. A later state replaces this snapshot normally.
This is not a task outcome or session closure. It does not cancel work, resolve pending requests, or revoke capabilities. If a control is no longer available, the Agent updates the capabilities explicitly. Unfinished tool calls and terminals stay as last reported. The Agent MUST NOT invent a final status for them, and Clients MUST NOT present them as confirmed live activity.
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.background: Option<Vec<BackgroundWork>>Work running independently of foreground work, as a complete snapshot.
Optional. Omitted and null are equivalent and mean the Agent is not reporting
background work, not that nothing is running. [] means no background work is
running. An Agent that reports background work MUST include it on every state
update for the session.
See protocol docs: Background Work
meta: Option<Map<String, Value>>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 UnknownStateUpdate
impl UnknownStateUpdate
Sourcepub fn new() -> UnknownStateUpdate
pub fn new() -> UnknownStateUpdate
Builds an unknown-activity state.
Sourcepub fn background(
self,
background: impl IntoOption<Vec<BackgroundWork>>,
) -> UnknownStateUpdate
pub fn background( self, background: impl IntoOption<Vec<BackgroundWork>>, ) -> UnknownStateUpdate
Work running independently of foreground work, as a complete snapshot.
Sourcepub fn meta(
self,
meta: impl IntoOption<Map<String, Value>>,
) -> UnknownStateUpdate
pub fn meta( self, meta: impl IntoOption<Map<String, Value>>, ) -> UnknownStateUpdate
Sets optional metadata for this state snapshot.
Trait Implementations§
Source§impl Clone for UnknownStateUpdate
impl Clone for UnknownStateUpdate
Source§fn clone(&self) -> UnknownStateUpdate
fn clone(&self) -> UnknownStateUpdate
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 UnknownStateUpdate
impl Debug for UnknownStateUpdate
Source§impl Default for UnknownStateUpdate
impl Default for UnknownStateUpdate
Source§fn default() -> UnknownStateUpdate
fn default() -> UnknownStateUpdate
Source§impl<'de> Deserialize<'de> for UnknownStateUpdate
impl<'de> Deserialize<'de> for UnknownStateUpdate
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<UnknownStateUpdate, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<UnknownStateUpdate, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
impl Eq for UnknownStateUpdate
Source§impl JsonSchema for UnknownStateUpdate
impl JsonSchema for UnknownStateUpdate
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 UnknownStateUpdate
impl PartialEq for UnknownStateUpdate
Source§impl Serialize for UnknownStateUpdate
impl Serialize for UnknownStateUpdate
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 UnknownStateUpdate
Auto Trait Implementations§
impl Forget for UnknownStateUpdate
impl Freeze for UnknownStateUpdate
impl Move for UnknownStateUpdate
impl RefUnwindSafe for UnknownStateUpdate
impl Send for UnknownStateUpdate
impl Sync for UnknownStateUpdate
impl Unpin for UnknownStateUpdate
impl UnsafeUnpin for UnknownStateUpdate
impl UnwindSafe for UnknownStateUpdate
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.