#[non_exhaustive]pub enum StateUpdate {
Running(RunningStateUpdate),
Idle(IdleStateUpdate),
RequiresAction(RequiresActionStateUpdate),
Unknown(UnknownStateUpdate),
Other(OtherStateUpdate),
}unstable_subagents only.Expand description
UNSTABLE
This capability is not part of the spec yet, and may be removed or changed at any point.
Current foreground-work state of a reusable child session.
Each update is a whole-object snapshot. Idle does not terminate the child; the parent can message it again, transitioning it back to running. Background activity may still emit other session updates while idle.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Running(RunningStateUpdate)
Foreground work is in progress.
Idle(IdleStateUpdate)
The child is ready to process another prompt.
RequiresAction(RequiresActionStateUpdate)
Foreground work is blocked on user action.
Unknown(UnknownStateUpdate)
The Agent cannot currently determine foreground activity.
This replaces previously confirmed activity without ending the work or session.
Other(OtherStateUpdate)
Custom or future state.
Values beginning with _ are reserved for implementation-specific
extensions. Other unknown values are reserved for future ACP variants.
Trait Implementations§
Source§impl Clone for StateUpdate
impl Clone for StateUpdate
Source§fn clone(&self) -> StateUpdate
fn clone(&self) -> StateUpdate
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 StateUpdate
impl Debug for StateUpdate
Source§impl<'de> Deserialize<'de> for StateUpdate
impl<'de> Deserialize<'de> for StateUpdate
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<StateUpdate, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<StateUpdate, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Source§impl JsonSchema for StateUpdate
impl JsonSchema for StateUpdate
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 more