pub struct HookRunPayload {
pub event: String,
pub hook_count: usize,
pub duration_ms: u64,
pub blocked: bool,
pub errors: usize,
pub tool_use_id: Option<String>,
}Expand description
One run of an event’s hooks: how long the model’s step waited on them, and whether they stopped something.
Fields§
§event: StringThe hook event’s name, e.g. PreToolUse.
hook_count: usize§duration_ms: u64§blocked: bool§errors: usizeHooks that failed, timed out or were stopped.
tool_use_id: Option<String>The tool call the run was about, for the tool events.
Trait Implementations§
Source§impl Clone for HookRunPayload
impl Clone for HookRunPayload
Source§fn clone(&self) -> HookRunPayload
fn clone(&self) -> HookRunPayload
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for HookRunPayload
impl Debug for HookRunPayload
Source§impl JsonSchema for HookRunPayload
impl JsonSchema for HookRunPayload
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl Serialize for HookRunPayload
impl Serialize for HookRunPayload
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Forget for HookRunPayload
impl Freeze for HookRunPayload
impl Move for HookRunPayload
impl RefUnwindSafe for HookRunPayload
impl Send for HookRunPayloadwhere
RawVecInner: Send,
impl Sync for HookRunPayloadwhere
RawVecInner: Sync,
impl Unpin for HookRunPayload
impl UnsafeUnpin for HookRunPayload
impl UnwindSafe for HookRunPayloadwhere
RawVecInner: UnwindSafe,
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