UNPKG

ai-utils.js

Version:

Build AI applications, chatbots, and agents with JavaScript and TypeScript.

14 lines (13 loc) 376 B
export class NoSuchToolError extends Error { constructor(toolName) { super(`No such tool: ${toolName}`); Object.defineProperty(this, "toolName", { enumerable: true, configurable: true, writable: true, value: void 0 }); this.name = "NoSuchToolError"; this.toolName = toolName; } }