Class: Anthropic::Models::CodeExecutionToolResultBlockParam
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Anthropic::Models::CodeExecutionToolResultBlockParam
- Defined in:
- lib/anthropic/models/code_execution_tool_result_block_param.rb,
sig/anthropic/models/code_execution_tool_result_block_param.rbs
Instance Attribute Summary collapse
-
#cache_control ⇒ Anthropic::Models::CacheControlEphemeral?
Create a cache control breakpoint at this content block.
- #content ⇒ Anthropic::Models::CodeExecutionToolResultErrorParam, ...
- #tool_use_id ⇒ String
- #type ⇒ Symbol, :code_execution_tool_result
Instance Method Summary collapse
-
#initialize(content:, tool_use_id:, cache_control: nil, type: :code_execution_tool_result) ⇒ CodeExecutionToolResultBlockParam
constructor
A new instance of CodeExecutionToolResultBlockParam.
- #to_hash ⇒ { content: Anthropic::Models::code_execution_tool_result_block_param_content, tool_use_id: String, type: :code_execution_tool_result, cache_control: Anthropic::CacheControlEphemeral? }
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(content:, tool_use_id:, cache_control: nil, type: :code_execution_tool_result) ⇒ CodeExecutionToolResultBlockParam
Returns a new instance of CodeExecutionToolResultBlockParam.
|
|
# File 'lib/anthropic/models/code_execution_tool_result_block_param.rb', line 27
|
Instance Attribute Details
#cache_control ⇒ Anthropic::Models::CacheControlEphemeral?
Create a cache control breakpoint at this content block.
25 |
# File 'lib/anthropic/models/code_execution_tool_result_block_param.rb', line 25 optional :cache_control, -> { Anthropic::CacheControlEphemeral }, nil?: true |
#content ⇒ Anthropic::Models::CodeExecutionToolResultErrorParam, ...
9 |
# File 'lib/anthropic/models/code_execution_tool_result_block_param.rb', line 9 required :content, union: -> { Anthropic::CodeExecutionToolResultBlockParamContent } |
#tool_use_id ⇒ String
14 |
# File 'lib/anthropic/models/code_execution_tool_result_block_param.rb', line 14 required :tool_use_id, String |
#type ⇒ Symbol, :code_execution_tool_result
19 |
# File 'lib/anthropic/models/code_execution_tool_result_block_param.rb', line 19 required :type, const: :code_execution_tool_result |
Instance Method Details
#to_hash ⇒ { content: Anthropic::Models::code_execution_tool_result_block_param_content, tool_use_id: String, type: :code_execution_tool_result, cache_control: Anthropic::CacheControlEphemeral? }
27 28 29 30 31 32 |
# File 'sig/anthropic/models/code_execution_tool_result_block_param.rbs', line 27
def to_hash: -> {
content: Anthropic::Models::code_execution_tool_result_block_param_content,
tool_use_id: String,
type: :code_execution_tool_result,
cache_control: Anthropic::CacheControlEphemeral?
}
|