UNPKG

@mastra/core

Version:

The core foundation of the Mastra framework, providing essential components and interfaces for building AI-powered applications.

29 lines (27 loc) 668 B
// src/tools/tool.ts var Tool = class { id; description; inputSchema; outputSchema; execute; mastra; constructor(opts) { this.id = opts.id; this.description = opts.description; this.inputSchema = opts.inputSchema; this.outputSchema = opts.outputSchema; this.execute = opts.execute; this.mastra = opts.mastra; } }; function createTool(opts) { return new Tool(opts); } // src/tools/toolchecks.ts function isVercelTool(tool) { return !!(tool && !(tool instanceof Tool) && "parameters" in tool); } export { Tool, createTool, isVercelTool }; //# sourceMappingURL=chunk-QU6RMCGM.js.map //# sourceMappingURL=chunk-QU6RMCGM.js.map