UNPKG

@mastra/core

Version:
20 lines • 1.01 kB
import type { MessageList } from '../agent/message-list/index.js'; import type { AgentSignalInput, CreatedAgentSignal } from '../agent/signals.js'; import type { ProcessorStreamWriter } from './index.js'; /** * Where a processor's `sendSignal` goes once the step that created it has * returned. Durable engines rebuild the MessageList for every step, so a held * `sendSignal` writing into the old list would never reach the model. */ export interface ProcessorLateSignalSink { isClosed(): boolean; send(signalInput: AgentSignalInput): Promise<CreatedAgentSignal>; } export declare const PROCESSOR_LATE_SIGNAL_SINK: import("../mastra/run-scope").RunScopeKey<ProcessorLateSignalSink>; export declare function createProcessorSendSignal(args: { messageList: MessageList; writer?: ProcessorStreamWriter; rotateResponseMessageId?: () => string; lateSink?: ProcessorLateSignalSink; }): (signalInput: AgentSignalInput) => Promise<CreatedAgentSignal>; //# sourceMappingURL=send-signal.d.ts.map