UNPKG

@mastra/core

Version:
52 lines • 1.75 kB
import type { SpanTermination } from '../../../../observability/index.js'; /** * Create a durable LLM mapping step. * * This step: * 1. Takes the LLM execution output and tool call results * 2. Updates the message list with tool results * 3. Combines everything into the final iteration output * * This is the "merge" step that combines parallel tool call results * back into a single coherent state. */ export declare function createDurableLLMMappingStep(): import("../../../../workflows").Step<"durable-llm-mapping", unknown, { llmOutput: any; toolResults: any[]; runId: string; agentId: string; messageId: string; state: any; }, { messageListState?: any; messageId: string; stepResult: any; toolResults: any[]; output: { text?: string | undefined; toolCalls?: any[] | undefined; usage: any; steps: any[]; content?: any[] | undefined; }; state: any; delegationBailed?: boolean | undefined; tracingDelegationFailure?: SpanTermination | undefined; tracingTermination?: SpanTermination | undefined; deadlineTimeout?: { timeoutType: "total"; timeoutMs: number; } | undefined; runAborted?: boolean | undefined; processorRetryCount?: number | undefined; processorRetryFeedback?: string | undefined; releasedToolResultIds?: string[] | undefined; deferredStepFinishChunk?: any; completionStartTime?: Date | undefined; timeToFirstTokenMs?: number | undefined; response?: { id?: string | undefined; modelId?: string | undefined; } | undefined; }, unknown, unknown, import("../../../../workflows").DefaultEngineType, unknown>; //# sourceMappingURL=llm-mapping.d.ts.map