UNPKG

@mastra/core

Version:

Mastra is a framework for building AI-powered applications and agents with a modern TypeScript stack.

16 lines 443 B
/** * Helper functions for AI SDK v5 compatibility */ /** * Extract tool name from AI SDK v5 tool type string * * V5 format: "tool-${toolName}" or "dynamic-tool" * V4 format: "tool-invocation" * * @param type - The tool type string from AI SDK v5 * @returns The tool name or 'dynamic-tool' if it's a dynamic tool */ export declare function getToolName(type: string | { type: string; }): string; //# sourceMappingURL=tool.d.ts.map