Type Alias: AfterIterationHook
type AfterIterationHook = (context) => undefined | Promise<undefined>;
Defined in: hooks/types.ts:82
Hook called after each iteration completes.
Can be used for:
- Logging iteration results
- Metrics collection
- State snapshots
Parameters
| Parameter | Type |
|---|---|
context | IterationHookContext & { completedWithText: boolean; toolCalls: { input: Record<string, unknown>; name: string; result: ToolExecutionResult; }[]; } |
Returns
undefined | Promise<undefined>