StreamCallbackConfig
Properties
Section titled “Properties”allowList?
Section titled “allowList?”optional allowList?: string[];denyList?
Section titled “denyList?”optional denyList?: string[];dropPolicy?
Section titled “dropPolicy?”optional dropPolicy?: "drop_oldest" | "drop_newest";emitFinalText?
Section titled “emitFinalText?”optional emitFinalText?: boolean;Attach accumulated assistant text as fullText on terminal events. Default: true
emitTextDeltas?
Section titled “emitTextDeltas?”optional emitTextDeltas?: boolean;Emit streaming text-delta events. Default: false (final text is emitted on terminal events via fullText)
emitToolEvents?
Section titled “emitToolEvents?”optional emitToolEvents?: boolean;Emit tool lifecycle events (tool-call/tool-result/tool-error) in message mode. Default: true
emitTransitionEvents?
Section titled “emitTransitionEvents?”optional emitTransitionEvents?: boolean;Emit transition lifecycle events (flow-transition/handoff) in message mode. Default: true
eventMode?
Section titled “eventMode?”optional eventMode?: "message" | "all";Events to emit when no explicit allowList is provided.
- message: emit message-oriented events (input, done, error, tripwire, plus tool/transition events per toggles)
- all: emit every runtime event (legacy/high-volume behavior) Default: message
flushOnEnd?
Section titled “flushOnEnd?”optional flushOnEnd?: boolean;If true, wait for sink queue drain when a stream call ends. Default: false.
flushTimeoutMs?
Section titled “flushTimeoutMs?”optional flushTimeoutMs?: number;includeFullText?
Section titled “includeFullText?”optional includeFullText?: boolean;logDroppedEvents?
Section titled “logDroppedEvents?”optional logDroppedEvents?: boolean;maxQueueSize?
Section titled “maxQueueSize?”optional maxQueueSize?: number;sinks?
Section titled “sinks?”optional sinks?: StreamCallbackSink[];