struct

Anthropic::WebSearchToolResultContent

Inherits JSON::Serializable < Struct < Value < Object

Web search tool result content block

Constructors

new(tool_use_id : String, content : WebSearchToolResultContentData, caller_info : ToolCaller | Nil = nil)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

caller

Short caller type ("direct", "code_execution", ...), if present.

Source
caller_info
Source
caller_tool_id

Tool id of a server-side caller, if present.

Source
content
Source
result_error

Error payload when the search failed, else nil.

Source
results

Results when the search succeeded, else nil.

Source
tool_use_id
Source
type
Source