pub struct TaskAgentInfo {Show 19 fields
pub active_started_at: Option<String>,
pub active_time_ms: Option<i64>,
pub agent_type: String,
pub can_promote_to_background: Option<bool>,
pub completed_at: Option<String>,
pub description: String,
pub error: Option<String>,
pub execution_mode: Option<TaskExecutionMode>,
pub id: String,
pub idle_since: Option<String>,
pub latest_response: Option<String>,
pub model: Option<String>,
pub prompt: String,
pub resolved_model: Option<String>,
pub result: Option<String>,
pub started_at: String,
pub status: TaskStatus,
pub tool_call_id: String,
pub type: TaskAgentInfoType,
}Expand description
Schema for the TaskAgentInfo type.
Experimental. This type is part of an experimental wire-protocol surface and may change or be removed in future SDK or CLI releases.
Fields§
§active_started_at: Option<String>ISO 8601 timestamp when the current active period began
active_time_ms: Option<i64>Accumulated active execution time in milliseconds
agent_type: StringType of agent running this task
can_promote_to_background: Option<bool>Whether the task is currently in the original sync wait and can be moved to background mode. False once it is already backgrounded, idle, finished, or no longer has a promotable sync waiter.
completed_at: Option<String>ISO 8601 timestamp when the task finished
description: StringShort description of the task
error: Option<String>Error message when the task failed
execution_mode: Option<TaskExecutionMode>Whether task execution is synchronously awaited or managed in the background
id: StringUnique task identifier
idle_since: Option<String>ISO 8601 timestamp when the agent entered idle state
latest_response: Option<String>Most recent response text from the agent
model: Option<String>Requested model override for the task when specified
prompt: StringMost recent prompt delivered to the agent. Updated whenever the agent receives a follow-up message.
resolved_model: Option<String>Runtime model resolved for the task when available
result: Option<String>Result text from the task when available
started_at: StringISO 8601 timestamp when the task was started
status: TaskStatusCurrent lifecycle status of the task
tool_call_id: StringTool call ID associated with this agent task
type: TaskAgentInfoTypeTask kind
Trait Implementations§
Source§impl Clone for TaskAgentInfo
impl Clone for TaskAgentInfo
Source§fn clone(&self) -> TaskAgentInfo
fn clone(&self) -> TaskAgentInfo
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more