Interface: IterationHookContext
Defined in: hooks/types.ts:48
Context for iteration hooks
Extends
Properties
iteration
iteration: number;
Defined in: hooks/types.ts:28
Current iteration number (1-indexed)
Inherited from
maxIterations
maxIterations: number;
Defined in: hooks/types.ts:52
Maximum iterations allowed
messages
messages: Message[];
Defined in: hooks/types.ts:57
Current message history
metadata
metadata: Record<string, unknown>;
Defined in: hooks/types.ts:38
Custom metadata that can be passed between hooks
Inherited from
sessionId
sessionId: string;
Defined in: hooks/types.ts:23
Current session ID
Inherited from
signal?
optional signal?: AbortSignal;
Defined in: hooks/types.ts:33
Abort signal for cancellation