AnthropicToolChoice

Represents a sealed interface for different tool choices in the Anthropic client API. This API is marked as internal and may change or be removed without notice.

Inheritors

Types

Link copied to clipboard
@SerialName(value = "any")
data object Any : AnthropicToolChoice

Represents a choice for using any available Anthropic tool.

Link copied to clipboard
@SerialName(value = "auto")
data object Auto : AnthropicToolChoice

Represents an automatic tool choice within the AnthropicToolChoice hierarchy.

Link copied to clipboard
@SerialName(value = "none")
data object None : AnthropicToolChoice

Represents the absence of a tool choice in the AnthropicToolChoice hierarchy.

Link copied to clipboard
@SerialName(value = "tool")
data class Tool(val name: String) : AnthropicToolChoice

Represents a specific tool within the AnthropicToolChoice hierarchy.