@langchain/core
Version:
Core LangChain.js abstractions and schemas
17 lines (16 loc) • 609 B
TypeScript
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);
}