Class: ToolError
Defined in: errors.ts:141
Error thrown when a tool execution fails.
Example
throw new ToolError(
'File not found: /path/to/file.txt',
'read_file',
originalError
);
Extends
Extended by
Constructors
Constructor
new ToolError(
message,
toolName,
cause?): ToolError;
Defined in: errors.ts:142
Parameters
| Parameter | Type |
|---|---|
message | string |
toolName | string |
cause? | Error |
Returns
ToolError
Overrides
Properties
cause?
readonly optional cause?: Error;
Defined in: errors.ts:17
Inherited from
toolName
readonly toolName: string;
Defined in: errors.ts:144