UNPKG

@mastra/core

Version:
10 lines • 488 B
/** Unwraps the legacy raw UI tool-output shape only when `value` is its sole enumerable key. */ export declare function unwrapLegacyToolOutput(output: unknown): unknown; /** Normalizes documented AI SDK output wrappers and the legacy sole-key `{ value }` envelope. */ export declare function normalizeToolOutput(output: unknown, { unwrapContent }?: { unwrapContent?: boolean; }): { isError: boolean; output: unknown; }; //# sourceMappingURL=unwrap-legacy-tool-output.d.ts.map