pub struct HookContext { /* private fields */ }Expand description
Run-scoped context supplied to hooks.
Implementations§
Source§impl HookContext
impl HookContext
Sourcepub fn is_streaming(&self) -> bool
pub fn is_streaming(&self) -> bool
Whether the streaming surface is driving this run.
Sourcepub fn agent_name(&self) -> Option<&str>
pub fn agent_name(&self) -> Option<&str>
Configured agent name.
Sourcepub fn scratchpad(&self) -> &Scratchpad
pub fn scratchpad(&self) -> &Scratchpad
Shared run scratchpad.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for HookContext
impl RefUnwindSafe for HookContext
impl Send for HookContext
impl Sync for HookContext
impl Unpin for HookContext
impl UnsafeUnpin for HookContext
impl UnwindSafe for HookContext
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