#[non_exhaustive]pub enum BackgroundWork {
Terminal(BackgroundTerminal),
ToolCall(BackgroundToolCall),
Subagent(BackgroundSubagent),
Other(OtherBackgroundWork),
}unstable_protocol_v2 only.Expand description
One piece of work running independently of the session’s foreground work.
Items reference entities the Client already tracks. The Agent MUST announce each item
before the first snapshot that lists it, and MUST report a terminal’s exitStatus or a
tool call’s final status before the snapshot that removes it. Each piece of work is
listed once: process-backed work is listed as its terminal, not also as its tool call.
See protocol docs: Background Work
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Terminal(BackgroundTerminal)
A process that keeps running after its tool call returned control to the model.
Live until its terminal_update reports exitStatus.
ToolCall(BackgroundToolCall)
Work started by a tool call that continues without a process of its own, such as
a watcher, a workflow, or a scheduled wakeup. pending and paused tool calls
stay listed.
Subagent(BackgroundSubagent)
unstable_subagents only.UNSTABLE
This capability is not part of the spec yet, and may be removed or changed at any point.
A detached subagent session that has anything running: its state is not idle, or
its own background list is non-empty or not reported.
Other(OtherBackgroundWork)
Custom or future background work.
Values beginning with _ are reserved for implementation-specific
extensions. Unknown values that do not begin with _ are reserved for
future ACP variants.
An unknown item still means background work is running, even when the Client cannot show what it is.
Trait Implementations§
Source§impl Clone for BackgroundWork
impl Clone for BackgroundWork
Source§impl Debug for BackgroundWork
impl Debug for BackgroundWork
Source§impl<'de> Deserialize<'de> for BackgroundWork
impl<'de> Deserialize<'de> for BackgroundWork
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 BackgroundWork
Source§impl JsonSchema for BackgroundWork
Available on crate feature schemars only.
impl JsonSchema for BackgroundWork
schemars only.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 BackgroundWork
impl PartialEq for BackgroundWork
Source§impl Serialize for BackgroundWork
impl Serialize for BackgroundWork
impl StructuralPartialEq for BackgroundWork
Auto Trait Implementations§
impl Freeze for BackgroundWork
impl RefUnwindSafe for BackgroundWork
impl Send for BackgroundWork
impl Sync for BackgroundWork
impl Unpin for BackgroundWork
impl UnsafeUnpin for BackgroundWork
impl UnwindSafe for BackgroundWork
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.