Interface: HookContext

Defined in: hooks/types.ts:19

Context available in all hook calls

Extended by

Properties

iteration

iteration: number;

Defined in: hooks/types.ts:28

Current iteration number (1-indexed)

metadata

metadata: Record<string, unknown>;

Defined in: hooks/types.ts:38

Custom metadata that can be passed between hooks

sessionId

sessionId: string;

Defined in: hooks/types.ts:23

Current session ID

signal?

optional signal?: AbortSignal;

Defined in: hooks/types.ts:33

Abort signal for cancellation