@mastra/core
Version:
16 lines • 803 B
TypeScript
import type { AgentRunResumeInput } from '../observability/index.js';
/** Identity of the tool call a resumed run continues into, when the snapshot records one. */
export interface SuspendedToolInfo {
toolCallId?: string;
toolName?: string;
}
/**
* Builds the `input` recorded on a resumed `AGENT_RUN` span.
*
* The resume data is always recorded as an object: an object is spread, anything
* else is kept under `resumeData`. When the suspended tool is known its
* identity is added; if the resume data names a different tool, the caller's
* data is nested so the suspended tool's identity stays authoritative.
*/
export declare function buildResumeSpanInput(resumeData: unknown, suspendedToolInfo?: SuspendedToolInfo): AgentRunResumeInput;
//# sourceMappingURL=resume-span-input.d.ts.map