Class: OpenAI::Models::Beta::Threads::Runs::CodeInterpreterLogs

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/openai/models/beta/threads/runs/code_interpreter_logs.rb

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, 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(index: , logs: nil, type: :logs) ⇒ Object

Text output from the Code Interpreter tool call as part of a run step.

Parameters:

  • index (Integer) (defaults to: )

    The index of the output in the outputs array.

  • logs (String) (defaults to: nil)

    The text output from the Code Interpreter tool call.

  • type (Symbol, :logs) (defaults to: :logs)

    Always ‘logs`.



# File 'lib/openai/models/beta/threads/runs/code_interpreter_logs.rb', line 27

Instance Attribute Details

#indexInteger

The index of the output in the outputs array.

Returns:

  • (Integer)


13
# File 'lib/openai/models/beta/threads/runs/code_interpreter_logs.rb', line 13

required :index, Integer

#logsString?

The text output from the Code Interpreter tool call.

Returns:

  • (String, nil)


25
# File 'lib/openai/models/beta/threads/runs/code_interpreter_logs.rb', line 25

optional :logs, String

#typeSymbol, :logs

Always ‘logs`.

Returns:

  • (Symbol, :logs)


19
# File 'lib/openai/models/beta/threads/runs/code_interpreter_logs.rb', line 19

required :type, const: :logs