InvalidToolCall#

class langchain_core.messages.tool.InvalidToolCall[source]#

Allowance for errors made by LLM.

Here we add an error key to surface errors made during generation (e.g., invalid JSON arguments.)

name: str | None#

The name of the tool to be called.

args: str | None#

The arguments to the tool call.

id: str | None#

An identifier associated with the tool call.

error: str | None#

An error message associated with the tool call.

type: Literal['invalid_tool_call']#