UNPKG

ai-utils.js

Version:

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

18 lines (17 loc) 523 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.NoSuchToolError = void 0; 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; } } exports.NoSuchToolError = NoSuchToolError;