@langchain/core
Version:
Core LangChain.js abstractions and schemas
12 lines (11 loc) • 486 B
TypeScript
import { ToolCall } from "../messages/tool.js";
export declare function _isToolCall(toolCall?: unknown): toolCall is ToolCall;
/**
* 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);
}