Skip to content

ToolCall

A tool call requested by the LLM. Contains the function name and serialized arguments that should be dispatched to the appropriate tool handler.

---
title: ToolCall
config:
  look: handDrawn
  theme: colorful
  class:
    hideEmptyMembersBox: true
---
classDiagram
    class ToolCall {
        +string id
        +string name
        +string arguments
    }
id: call_abc123
name: get_weather
arguments: '{"city": "Paris"}'
NameTypeDescription
idstringThe unique identifier of the tool call
namestringThe name of the tool to call
argumentsstringThe serialized JSON arguments for the tool call