A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://python.langchain.com/api_reference/core/messages/langchain_core.messages.tool.ToolCall.html below:

ToolCall — 🦜🔗 LangChain documentation

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

Represents a request to call a tool.

Example

{
    "name": "foo",
    "args": {"a": 1},
    "id": "123"
}

This represents a request to call the tool named “foo” with arguments {“a”: 1} and an identifier of “123”.

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.

An identifier is needed to associate a tool call request with a tool call result in events when multiple concurrent tool calls are made.

type: NotRequired[Literal['tool_call']]#

Examples using ToolCall


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4