Class: Anthropic::Models::WebSearchToolResultBlock
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Anthropic::Models::WebSearchToolResultBlock
- Defined in:
- lib/anthropic/models/web_search_tool_result_block.rb,
sig/anthropic/models/web_search_tool_result_block.rbs
Defined Under Namespace
Modules: Caller
Constant Summary collapse
- Anthropic =
Instance Attribute Summary collapse
- #caller_ ⇒ Anthropic::Models::DirectCaller, ...
- #content ⇒ Anthropic::Models::WebSearchToolResultErrorObject, Array<Anthropic::Models::WebSearchResultBlock>
- #tool_use_id ⇒ String
- #type ⇒ Symbol, :web_search_tool_result
Instance Method Summary collapse
-
#initialize(caller_:, content:, tool_use_id:, type: :web_search_tool_result) ⇒ WebSearchToolResultBlock
constructor
A new instance of WebSearchToolResultBlock.
- #to_hash ⇒ { caller_: Anthropic::Models::WebSearchToolResultBlock::caller_, content: Anthropic::Models::web_search_tool_result_block_content, tool_use_id: String, type: :web_search_tool_result }
Methods inherited from Internal::Type::BaseModel
==, #==, #[], 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
Methods included from Internal::Type::Converter
#coerce, coerce, #dump, dump, inspect, #inspect, meta_info, new_coerce_state, type_info
Methods included from Internal::Util::SorbetRuntimeSupport
#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type
Constructor Details
#initialize(caller_:, content:, tool_use_id:, type: :web_search_tool_result) ⇒ WebSearchToolResultBlock
Returns a new instance of WebSearchToolResultBlock.
|
|
# File 'lib/anthropic/models/web_search_tool_result_block.rb', line 26
|
Instance Attribute Details
#caller_ ⇒ Anthropic::Models::DirectCaller, ...
9 |
# File 'lib/anthropic/models/web_search_tool_result_block.rb', line 9 required :caller_, union: -> { Anthropic::WebSearchToolResultBlock::Caller }, api_name: :caller |
#content ⇒ Anthropic::Models::WebSearchToolResultErrorObject, Array<Anthropic::Models::WebSearchResultBlock>
14 |
# File 'lib/anthropic/models/web_search_tool_result_block.rb', line 14 required :content, union: -> { Anthropic::WebSearchToolResultBlockContent } |
#tool_use_id ⇒ String
19 |
# File 'lib/anthropic/models/web_search_tool_result_block.rb', line 19 required :tool_use_id, String |
#type ⇒ Symbol, :web_search_tool_result
24 |
# File 'lib/anthropic/models/web_search_tool_result_block.rb', line 24 required :type, const: :web_search_tool_result |
Instance Method Details
#to_hash ⇒ { caller_: Anthropic::Models::WebSearchToolResultBlock::caller_, content: Anthropic::Models::web_search_tool_result_block_content, tool_use_id: String, type: :web_search_tool_result }
27 28 29 30 31 32 |
# File 'sig/anthropic/models/web_search_tool_result_block.rbs', line 27
def to_hash: -> {
caller_: Anthropic::Models::WebSearchToolResultBlock::caller_,
content: Anthropic::Models::web_search_tool_result_block_content,
tool_use_id: String,
type: :web_search_tool_result
}
|