Skip to main content

emit_before_tool_call

Function emit_before_tool_call 

Source
pub async fn emit_before_tool_call(
    hook_bus: &Arc<HookBus>,
    tool_name: &str,
    runtime_tool_name: Option<&str>,
    input: Value,
) -> HookResult
Expand description

Emit a before_tool_call event and include the runtime tool name when it differs from the API-safe name.