Interface: LLMHookContext

Defined in: hooks/types.ts:107

Context for LLM hooks

Extends

Extended by

Properties

iteration

iteration: number;

Defined in: hooks/types.ts:28

Current iteration number (1-indexed)

Inherited from

HookContext.iteration

messages

messages: Message[];

Defined in: hooks/types.ts:111

Messages to be sent to LLM

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

systemPrompt

systemPrompt: string;

Defined in: hooks/types.ts:122

Current system prompt (fully assembled, including anchors). Hooks can read this and return a modified version in BeforeLLMHookResult.

tools

tools: ToolDefinition[];

Defined in: hooks/types.ts:116

Tool definitions available to LLM