Anthropic::ToolAdditionContent
Inherits JSON::Serializable < Struct < Value < Object
Mid-conversation directive to surface a declared tool.
tool references a tool (or MCP toolset) from the request's tools[]; it is
offered to the model from this point in the conversation onward.
Primarily request-only; serialization and echo parsing are supported.
Constructors
Convenience for a locally declared tool name.
new(pull : JSON::PullParser)
Sourcenew(tool : ToolChangeReference, cache_control : CacheControl | Nil = nil)
Sourcenew(*, __pull_for_json_serializable pull : JSON::PullParser)
SourceInstance methods
cache_control
Sourcetool
Sourcetype
Source