module

Anthropic::ToolChangeDefinitionConverter

Converter for a tool-change definition payload: parses custom tools as ResponseTool, keeps anything else (server-tool definitions, or request-side definitions carrying cache_control) as raw JSON.

Class methods

from_json(pull : JSON::PullParser) : ResponseTool | JSON::Any
Source
to_json(value : ResponseTool | JSON::Any, builder : JSON::Builder)
Source