pub struct BackgroundTaskInfo {
pub task_id: String,
pub run_id: Option<String>,
pub task_type: String,
pub subagent_type: Option<String>,
pub description: String,
pub parent_task_id: Option<String>,
pub ambient: Option<bool>,
pub awaited: Option<bool>,
}Fields§
§task_id: String§run_id: Option<String>Id of the task’s current run; see TaskStartedMessage::run_id
(CLI 2.1.292+).
task_type: String§subagent_type: Option<String>Agent type of a local_agent task, such as general-purpose or a
custom agent’s name; main-session for a backgrounded main session.
Not set on other tasks (CLI 2.1.293+).
description: String§parent_task_id: Option<String>task_id of the subagent task that launched this one; see
TaskStartedMessage::parent_task_id (CLI 2.1.292+).
ambient: Option<bool>True for housekeeping tasks the CLI does not surface as user work; hosts should exclude them from activity indicators (CLI 2.1.259+).
awaited: Option<bool>True for an awaited run of a resumed subagent; see
TaskStartedMessage::awaited (CLI 2.1.293+).
Trait Implementations§
Source§impl Clone for BackgroundTaskInfo
impl Clone for BackgroundTaskInfo
Source§impl Debug for BackgroundTaskInfo
impl Debug for BackgroundTaskInfo
Source§impl<'de> Deserialize<'de> for BackgroundTaskInfo
impl<'de> Deserialize<'de> for BackgroundTaskInfo
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>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for BackgroundTaskInfo
impl RefUnwindSafe for BackgroundTaskInfo
impl Send for BackgroundTaskInfo
impl Sync for BackgroundTaskInfo
impl Unpin for BackgroundTaskInfo
impl UnsafeUnpin for BackgroundTaskInfo
impl UnwindSafe for BackgroundTaskInfo
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
Mutably borrows from an owned value. Read more