Skip to main content

call_post_tool

Function call_post_tool 

Source
pub async fn call_post_tool(
    hooks: &Arc<dyn Hooks>,
    name: &str,
    result: &str,
    cancel: &CancellationToken,
) -> Option<String>
Expand description

PostToolUse under the timeout and the cancel token, with the payload cap applied HERE (pin #1) rather than trusted to each impl. Both fallbacks are None: on a timeout or an interrupt the model sees the tool’s real output, never a half-applied proposal.