AnthropicTool
data class AnthropicTool(val name: String, val description: String, val inputSchema: AnthropicToolSchema, val cacheControl: AnthropicCacheControl? = null)(source)
Represents a tool definition for Anthropic integration.
This class holds metadata about a tool including its name, description, and input schema. It is used to define and describe tools in the Anthropic ecosystem, where tools are entities with specific input requirements represented by the AnthropicToolSchema.
Constructors
Link copied to clipboard
constructor(name: String, description: String, inputSchema: AnthropicToolSchema, cacheControl: AnthropicCacheControl? = null)
Properties
Link copied to clipboard
Optional cache control directive for explicit breakpoint prompt caching. When set on the last tool in the list, all tool definitions are eligible for caching.
Link copied to clipboard
A human-readable description of the tool's purpose or functionality.
Link copied to clipboard
The schema representing the structure of the input required by the tool.