pub struct OutputHardLimitHook;Expand description
Infrastructure hook that enforces a hard 64 KiB ceiling on tool result text.
Always registered as a final_post_tool_hook in ActAtom — cannot be removed
by capabilities. Runs after all capability-contributed hooks so that
persistence hooks (EVE-222) can capture full output before truncation.
Head-truncation with UTF-8 safety: keeps the first N bytes (on a char boundary) and appends an LLM-actionable suffix.
Trait Implementations§
Source§impl PostToolExecHook for OutputHardLimitHook
impl PostToolExecHook for OutputHardLimitHook
Source§fn after_exec<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>(
&'life0 self,
tool_call: &'life1 ToolCall,
_tool_def: &'life2 ToolDefinition,
result: &'life3 mut ToolResult,
_context: &'life4 ToolContext,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
'life4: 'async_trait,
fn after_exec<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>(
&'life0 self,
tool_call: &'life1 ToolCall,
_tool_def: &'life2 ToolDefinition,
result: &'life3 mut ToolResult,
_context: &'life4 ToolContext,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
'life4: 'async_trait,
Inspect or transform one tool result before engine event emission.
Source§fn priority(&self) -> PostToolExecHookPriority
fn priority(&self) -> PostToolExecHookPriority
Ordering within the capability-contributed hook phase.
Auto Trait Implementations§
impl Freeze for OutputHardLimitHook
impl RefUnwindSafe for OutputHardLimitHook
impl Send for OutputHardLimitHook
impl Sync for OutputHardLimitHook
impl Unpin for OutputHardLimitHook
impl UnsafeUnpin for OutputHardLimitHook
impl UnwindSafe for OutputHardLimitHook
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