tool_call#

langchain_core.messages.tool.tool_call(
*,
name: str,
args: dict[str, Any],
id: str | None,
) ToolCall[source]#

Create a tool call.

Parameters:
  • name (str) – The name of the tool to be called.

  • args (dict[str, Any]) – The arguments to the tool call.

  • id (str | None) – An identifier associated with the tool call.

Return type:

ToolCall