struct

Anthropic::ServerToolUseContent

Inherits JSON::Serializable < Struct < Value < Object

Server tool use content block (Claude using a server-side tool)

Constructors

new(id : String, name : String, input : JSON::Any, caller_info : ToolCaller | Nil = nil)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

caller
Source
caller_info
Source
caller_tool_id
Source
input
Source
input_as(type : T.class) : T forall T

Parse input into a typed struct

Source
name
Source
type
Source