Skip to content
1 min read · 59 words

Type Alias: EmitMessageFn

ts
type EmitMessageFn = (content: TurnStreamableContent) => void;

Defined in: lib/types/turn_runner.ts:210

A function that emits a message event on the @nhtio/adk!TurnRunner.

Parameters

ParameterType
contentTurnStreamableContent

Returns

void

Remarks

Injected into @nhtio/adk!TurnContext so middleware can surface streaming message chunks without holding a reference to the runner or its emitter.