call

fun call(id: String?, tool: String, content: String)(source)

Adds a tool call message to the prompt.

This method creates a Message.Tool.Call instance and adds it to the message list. The tool call represents a request to execute a specific tool with the provided parameters.

Parameters

id

The unique identifier for the tool call message.

tool

The name of the tool being called.

content

The content or payload of the tool call.


Deprecated

Use call(id, tool, content) instead

Replace with

call(id, tool, content)

Adds a tool call message to the prompt.

Tool calls represent requests to execute a specific tool.

Parameters

call

The tool call message to add