UNPKG

@mastra/core

Version:

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

28 lines (25 loc) 583 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 };