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

HookContext.iteration

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

HookContext.metadata

sessionId

sessionId: string;

Defined in: hooks/types.ts:23

Current session ID

Inherited from

HookContext.sessionId

signal?

optional signal?: AbortSignal;

Defined in: hooks/types.ts:33

Abort signal for cancellation

Inherited from

HookContext.signal