Type Alias: AfterToolHook

type AfterToolHook = (context) => 
  | undefined
  | Promise<undefined>
  | AfterToolHookResult
| Promise<AfterToolHookResult>;

Defined in: hooks/types.ts:297

Hook called after tool execution.

Can be used for:

  • Result transformation
  • Logging and metrics
  • Result validation
  • Error enrichment

Parameters

Parameter Type
context AfterToolHookContext

Returns

| undefined | Promise<undefined> | AfterToolHookResult | Promise<AfterToolHookResult>