pub struct AgentInterruptedData {Show 13 fields
pub activity: AgentInterruptedActivity,
pub api_endpoint: Option<String>,
pub cancel_phase: Option<AgentInterruptedCancelPhase>,
pub elapsed_ms: f64,
pub interrupted_agent_count: Option<i64>,
pub model: Option<String>,
pub output_ttft_ms: Option<f64>,
pub reasoning_effort: Option<String>,
pub safe_tool_names: Option<Vec<String>>,
pub tool_call_ids: Option<Vec<String>>,
pub tool_names: Option<Vec<String>>,
pub transport: Option<ModelCallFailureTransport>,
pub turn: i64,
}Expand description
Session event “agent.interrupted”. Metadata for work the user interrupted while the agent was running
Fields§
§activity: AgentInterruptedActivityWhat the agent was doing when the user interrupted it
api_endpoint: Option<String>For an interrupted model call: the provider endpoint the request targeted
cancel_phase: Option<AgentInterruptedCancelPhase>For an interrupted model call: whether the user interrupted before any token arrived or while the response was streaming
elapsed_ms: f64How long the interrupted work had been running, in milliseconds
interrupted_agent_count: Option<i64>For an interrupted background-agent batch: how many background sub-agents the stop swept. Counts accepted cancellations, so an agent cancelled as a cascade of its interrupted parent is covered by that parent rather than counted again.
model: Option<String>For an interrupted model call: the model the request targeted
output_ttft_ms: Option<f64>For a mid-stream interrupt: the observed time to first observable output, in milliseconds. Deliberately distinct from the ttftMs reported on a successful model call, which measures time to first stream event.
reasoning_effort: Option<String>For an interrupted model call: the reasoning effort the request asked for
safe_tool_names: Option<Vec<String>>Subset of toolNames whose tool metadata marks the tool name as safe to record unhashed in telemetry.
tool_call_ids: Option<Vec<String>>Tool call identifiers that were still running
tool_names: Option<Vec<String>>Names of the tools that were still running. More than one when the model requested a parallel fan-out.
transport: Option<ModelCallFailureTransport>For an interrupted model call: the transport the request used
turn: i64Zero-based agentic-loop iteration the interrupt landed in
Trait Implementations§
Source§impl Clone for AgentInterruptedData
impl Clone for AgentInterruptedData
Source§fn clone(&self) -> AgentInterruptedData
fn clone(&self) -> AgentInterruptedData
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more