Type Alias: AfterToolHook
type AfterToolHook = (context) =>
| void
| AfterToolHookResult
| Promise<void | AfterToolHookResult>;
Defined in: hooks/types.ts:312
Hook called after tool execution.
Can be used for:
- Result transformation
- Logging and metrics
- Result validation
- Error enrichment
Parameters
| Parameter | Type |
|---|---|
context | AfterToolHookContext |
Returns
| void | AfterToolHookResult | Promise<void | AfterToolHookResult>