toolCall

Creates a ToolResultMessageBuilder initialized with the provided tool call.

Return

A new instance of ToolResultMessageBuilder configured with the specified tool call.

Parameters

call

The tool call message to be included in the builder.


Adds a tool call message and initializes a ToolResultMessageBuilder.

This method creates a tool call message using the provided parameters and sets up the builder for further configuration of tool result messages.

Return

A ToolResultMessageBuilder for adding tool result messages.

Parameters

id

A unique identifier for the tool call message. It can be null.

tool

The name of the tool to be invoked.

content

The content or payload associated with the tool call.