Class: Anthropic::Models::Beta::BetaCodeExecutionResultBlockParam

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/anthropic/models/beta/beta_code_execution_result_block_param.rb,
sig/anthropic/models/beta/beta_code_execution_result_block_param.rbs

Instance Attribute Summary collapse

Instance Method Summary collapse

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 ⇒ BetaCodeExecutionResultBlockParam

Returns a new instance of BetaCodeExecutionResultBlockParam.

Parameters:

  • content: (::Array[Anthropic::Beta::BetaCodeExecutionOutputBlockParam])
  • return_code: (Integer)
  • stderr: (String)
  • stdout: (String)
  • type: (:code_execution_result)


26
27
28
29
30
31
32
# File 'sig/anthropic/models/beta/beta_code_execution_result_block_param.rbs', line 26

def initialize: (
  content: ::Array[Anthropic::Beta::BetaCodeExecutionOutputBlockParam],
  return_code: Integer,
  stderr: String,
  stdout: String,
  ?type: :code_execution_result
) -> void

Instance Attribute Details

#content ⇒ Array<Anthropic::Models::Beta::BetaCodeExecutionOutputBlockParam>

Parameters:

  • value (::Array[Anthropic::Beta::BetaCodeExecutionOutputBlockParam])

Returns:



10
11
# File 'lib/anthropic/models/beta/beta_code_execution_result_block_param.rb', line 10

required :content,
-> { Anthropic::Internal::Type::ArrayOf[Anthropic::Beta::BetaCodeExecutionOutputBlockParam] }

#return_code ⇒ Integer

Parameters:

  • value (Integer)

Returns:

  • (Integer)


16
# File 'lib/anthropic/models/beta/beta_code_execution_result_block_param.rb', line 16

required :return_code, Integer

#stderr ⇒ String

Parameters:

  • value (String)

Returns:

  • (String)


21
# File 'lib/anthropic/models/beta/beta_code_execution_result_block_param.rb', line 21

required :stderr, String

#stdout ⇒ String

Parameters:

  • value (String)

Returns:

  • (String)


26
# File 'lib/anthropic/models/beta/beta_code_execution_result_block_param.rb', line 26

required :stdout, String

#type ⇒ Symbol, :code_execution_result

Parameters:

  • value (:code_execution_result)

Returns:

  • (Symbol, :code_execution_result)


31
# File 'lib/anthropic/models/beta/beta_code_execution_result_block_param.rb', line 31

required :type, const: :code_execution_result

Instance Method Details

#to_hash ⇒ { content: ::Array[Anthropic::Beta::BetaCodeExecutionOutputBlockParam], return_code: Integer, stderr: String, stdout: String, type: :code_execution_result }

Returns:

  • ({ content: ::Array[Anthropic::Beta::BetaCodeExecutionOutputBlockParam], return_code: Integer, stderr: String, stdout: String, type: :code_execution_result })


34
35
36
37
38
39
40
# File 'sig/anthropic/models/beta/beta_code_execution_result_block_param.rbs', line 34

def to_hash: -> {
  content: ::Array[Anthropic::Beta::BetaCodeExecutionOutputBlockParam],
  return_code: Integer,
  stderr: String,
  stdout: String,
  type: :code_execution_result
}