ToolResult

@SerialName(value = "tool_result")
class ToolResult(val toolUseId: String, val content: String) : BedrockAnthropicInvokeModelContent(source)

Represents the result of a tool invocation in the context of Bedrock's Anthropic API.

This class is a specialized type of BedrockAnthropicInvokeModelContent, intended to encapsulate the response from a tool invoked as part of the model's execution. It contains metadata about the tool's usage and the returned content.

Constructors

Link copied to clipboard
constructor(toolUseId: String, content: String)

Properties

Link copied to clipboard

The content or result returned by the tool after execution.

Link copied to clipboard
@SerialName(value = "tool_use_id")
val toolUseId: String

The unique identifier for the specific tool invocation. This can be used to trace or debug the usage of tools.