pub struct ProgressEvent {
pub metadata: EventMetadata,
pub tool_use_id: Option<String>,
pub parent_tool_use_id: Option<String>,
pub data: ProgressData,
}Expand description
Progress event wrapper
Contains real-time progress updates during tool execution.
§Links
tool_use_id: Links toToolUseBlock.idthat triggered this progressparent_tool_use_id: For nested tool invocations (agents spawning agents)metadata.parent_uuid: Links to parent message in conversation
§Frequency
~82,200 occurrences per large session (MOST FREQUENT event type!)
Fields§
§metadata: EventMetadataCommon event metadata
tool_use_id: Option<String>Tool use ID that triggered this progress
Links to ToolUseBlock.id in assistant message
parent_tool_use_id: Option<String>Parent tool use ID (for nested tools)
Used when agents spawn sub-agents or tools invoke other tools
data: ProgressDataProgress data (bash, agent, hook, etc.)
Implementations§
Trait Implementations§
Source§impl Clone for ProgressEvent
impl Clone for ProgressEvent
Source§impl Debug for ProgressEvent
impl Debug for ProgressEvent
Source§impl<'de> Deserialize<'de> for ProgressEvent
impl<'de> Deserialize<'de> for ProgressEvent
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 ProgressEvent
impl RefUnwindSafe for ProgressEvent
impl Send for ProgressEvent
impl Sync for ProgressEvent
impl Unpin for ProgressEvent
impl UnsafeUnpin for ProgressEvent
impl UnwindSafe for ProgressEvent
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