Class: Anthropic::Models::WebFetchToolResultBlock
Defined Under Namespace
Modules: Caller, Content
Constant Summary
collapse
- Anthropic =
Instance Attribute Summary collapse
Instance Method Summary
collapse
==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml
#coerce, coerce, #dump, dump, inspect, #inspect, meta_info, new_coerce_state, type_info
#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type
Constructor Details
#initialize(caller_:, content:, tool_use_id:, type: :web_fetch_tool_result) ⇒ WebFetchToolResultBlock
Returns a new instance of WebFetchToolResultBlock.
|
# File 'lib/anthropic/models/web_fetch_tool_result_block.rb', line 26
|
Instance Attribute Details
9
|
# File 'lib/anthropic/models/web_fetch_tool_result_block.rb', line 9
required :caller_, union: -> { Anthropic::WebFetchToolResultBlock::Caller }, api_name: :caller
|
14
|
# File 'lib/anthropic/models/web_fetch_tool_result_block.rb', line 14
required :content, union: -> { Anthropic::WebFetchToolResultBlock::Content }
|
19
|
# File 'lib/anthropic/models/web_fetch_tool_result_block.rb', line 19
required :tool_use_id, String
|
#type ⇒ Symbol, :web_fetch_tool_result
24
|
# File 'lib/anthropic/models/web_fetch_tool_result_block.rb', line 24
required :type, const: :web_fetch_tool_result
|
Instance Method Details
#to_hash ⇒ { caller_: Anthropic::Models::WebFetchToolResultBlock::caller_, content: Anthropic::Models::WebFetchToolResultBlock::content, tool_use_id: String, type: :web_fetch_tool_result }
27
28
29
30
31
32
|
# File 'sig/anthropic/models/web_fetch_tool_result_block.rbs', line 27
def to_hash: -> {
caller_: Anthropic::Models::WebFetchToolResultBlock::caller_,
content: Anthropic::Models::WebFetchToolResultBlock::content,
tool_use_id: String,
type: :web_fetch_tool_result
}
|