ToolCall

@SerialName(value = "tool_use")
class ToolCall(val id: String, val name: String, val input: JsonElement) : BedrockAnthropicInvokeModelContent(source)

Represents a tool call instruction which is part of the model invocation content.

This class is designed to capture the details of a tool usage scenario during the communication or execution process. A ToolCall includes an identifier, the name of the tool being invoked, and the specific input provided to the tool in the form of JSON objects.

The class is serializable using kotlinx.serialization and uses a custom serial name tool_use.

Constructors

Link copied to clipboard
constructor(id: String, name: String, input: JsonElement)

Properties

Link copied to clipboard
val id: String

The unique identifier for the tool call invocation.

Link copied to clipboard

A JSON object containing the input parameters or configuration for the tool.

Link copied to clipboard

The name of the tool being invoked.