Class: OpenAI::Models::Beta::Threads::Runs::CodeInterpreterToolCall::CodeInterpreter

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

Overview

See Also:

Defined Under Namespace

Modules: Output

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(input: , outputs: ) ⇒ Object

Some parameter documentations has been truncated, see OpenAI::Models::Beta::Threads::Runs::CodeInterpreterToolCall::CodeInterpreter for more details.

The Code Interpreter tool call definition.

Parameters:



# File 'lib/openai/models/beta/threads/runs/code_interpreter_tool_call.rb', line 62

Instance Attribute Details

#inputString

The input to the Code Interpreter tool call.

Returns:

  • (String)


49
# File 'lib/openai/models/beta/threads/runs/code_interpreter_tool_call.rb', line 49

required :input, String

#outputsArray<OpenAI::Models::Beta::Threads::Runs::CodeInterpreterToolCall::CodeInterpreter::Output::Logs, OpenAI::Models::Beta::Threads::Runs::CodeInterpreterToolCall::CodeInterpreter::Output::Image>

The outputs from the Code Interpreter tool call. Code Interpreter can output one or more items, including text (‘logs`) or images (`image`). Each of these are represented by a different object type.



57
58
59
60
# File 'lib/openai/models/beta/threads/runs/code_interpreter_tool_call.rb', line 57

required :outputs,
-> {
  OpenAI::Internal::Type::ArrayOf[union: OpenAI::Beta::Threads::Runs::CodeInterpreterToolCall::CodeInterpreter::Output]
}