Functions

typedEmit

Function: typedEmit()

typedEmit<K>(scope, type, payload): void

Defined in: src/recorders/core/typedEmit.ts:63

Emit a typed event from inside stage code.

Type Parameters

K

K extends keyof AgentfootprintEventMap

Parameters

scope

EmitableScope

type

K

payload

AgentfootprintEventMap[K]["payload"]

Returns

void

Example

typedEmit(scope, 'agentfootprint.stream.llm_start', {
    iteration: 1,
    provider: 'anthropic',
    model: 'claude-opus-4-8',
    systemPromptChars: 800,
    messagesCount: 2,
    toolsCount: 0,
  });

On this page