Functions

extractCommentaryVars

Function: extractCommentaryVars()

extractCommentaryVars(event, ctx, templates?): Record<string, string>

Defined in: src/recorders/observability/commentary/commentaryTemplates.ts:278

Build the variable bag for a given event. Flat name → string map; renderCommentary substitutes by name. Templates use whatever names this function produces.

Two-step composition for stream.tool_start: the optional descClause is a rendered sub-template. We pre-render it here so the outer template stays a single non-recursive substitution pass.

Parameters

event

AgentfootprintEvent

ctx

CommentaryContext

templates?

CommentaryTemplates = defaultCommentaryTemplates

Returns

Record<string, string>

On this page