pub struct HookStartData {
pub hook_invocation_id: String,
pub hook_type: String,
pub input: Option<Value>,
pub parent_tool_call_id: Option<String>,
}Expand description
Session event “hook.start”. Hook invocation start details including type and input data
Fields§
§hook_invocation_id: StringUnique identifier for this hook invocation
hook_type: StringType of hook being invoked (e.g., “preToolUse”, “postToolUse”, “sessionStart”)
input: Option<Value>Input data passed to the hook. For postToolUse hooks the retained copy served by session.eventLog.read (and by a resumed session) elides the tool result’s inline contents/uiResource and replaces an over-long textResultForLlm with a [copilot:elided ...] marker, to keep a multi-megabyte payload out of the durable event log; the live subscription stream still delivers the full value. Read the adjacent tool.execution_complete event for the tool result itself.
parent_tool_call_id: Option<String>Tool call ID of the parent tool invocation when this event originates from a sub-agent
Trait Implementations§
Source§impl Clone for HookStartData
impl Clone for HookStartData
Source§fn clone(&self) -> HookStartData
fn clone(&self) -> HookStartData
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more