A language model response part indicating a tool call, returned from a {@link LanguageModelChatResponse}, and also can be included as a content part on a {@link LanguageModelChatMessage}, to represent a previous tool call in a chat request.

Constructor

new(callId:String, name:String, input:{})

Create a new LanguageModelToolCallPart.

Parameters:

callId

The ID of the tool call.

name

The name of the tool to call.

input

The input with which to call the tool.

Variables

callId:String

The ID of the tool call. This is a unique identifier for the tool call within the chat request.

input:{}

The input with which to call the tool.

name:String

The name of the tool to call.