Tool

@SerialName(value = "tool")
data class Tool(val name: String) : AnthropicToolChoice(source)

Represents a specific tool within the AnthropicToolChoice hierarchy.

This class is a data representation of a tool, identified by its name. It extends the AnthropicToolChoice sealed interface and is used to define tools by their string identifiers.

Constructors

Link copied to clipboard
constructor(name: String)

Properties

Link copied to clipboard

The name of the tool as a string.