12345678910111213141516 |
- import { ToolCall } from "../messages/tool.js";
- export declare function _isToolCall(toolCall?: unknown): toolCall is ToolCall;
- export declare function _configHasToolCallId(config?: unknown): config is {
- toolCall: {
- id?: string;
- };
- };
- /**
- * Custom error class used to handle exceptions related to tool input parsing.
- * It extends the built-in `Error` class and adds an optional `output`
- * property that can hold the output that caused the exception.
- */
- export declare class ToolInputParsingException extends Error {
- output?: string;
- constructor(message: string, output?: string);
- }
|