donobu
Version:
Create browser automations with an LLM agent and replay them as Playwright scripts.
18 lines • 819 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.ToolCallFailedException = void 0;
/**
* NOTE: This exception is used by the Donobu library (i.e. the code under src/lib),
* not by the main Donobu engine (i.e. the code under src/managers). This class
* is only meant to aid in SDK integrations with Donobu so that integrations do
* not need to catch bare Errors then pick apart message strings when tools fail.
*/
class ToolCallFailedException extends Error {
constructor(toolName, result) {
super(`${toolName} execution failed: ${JSON.stringify(result, null, 2)}`);
this.toolName = toolName;
this.result = result;
}
}
exports.ToolCallFailedException = ToolCallFailedException;
//# sourceMappingURL=ToolCallFailedException.js.map