Class: OpenAI::Models::Beta::Threads::RunSubmitToolOutputsParams::ToolOutput

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/openai/models/beta/threads/run_submit_tool_outputs_params.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(output: nil, tool_call_id: nil) ⇒ Object

Some parameter documentations has been truncated, see OpenAI::Models::Beta::Threads::RunSubmitToolOutputsParams::ToolOutput for more details.

Parameters:

  • output (String) (defaults to: nil)

    The output of the tool call to be submitted to continue the run.

  • tool_call_id (String) (defaults to: nil)

    The ID of the tool call in the ‘required_action` object within the run object th



35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# File 'lib/openai/models/beta/threads/run_submit_tool_outputs_params.rb', line 35

class ToolOutput < OpenAI::Internal::Type::BaseModel
  # @!attribute output
  #   The output of the tool call to be submitted to continue the run.
  #
  #   @return [String, nil]
  optional :output, String

  # @!attribute tool_call_id
  #   The ID of the tool call in the `required_action` object within the run object
  #   the output is being submitted for.
  #
  #   @return [String, nil]
  optional :tool_call_id, String

  # @!method initialize(output: nil, tool_call_id: nil)
  #   Some parameter documentations has been truncated, see
  #   {OpenAI::Models::Beta::Threads::RunSubmitToolOutputsParams::ToolOutput} for more
  #   details.
  #
  #   @param output [String] The output of the tool call to be submitted to continue the run.
  #
  #   @param tool_call_id [String] The ID of the tool call in the `required_action` object within the run object th
end

Instance Attribute Details

#outputString?

The output of the tool call to be submitted to continue the run.

Returns:

  • (String, nil)


40
# File 'lib/openai/models/beta/threads/run_submit_tool_outputs_params.rb', line 40

optional :output, String

#tool_call_idString?

The ID of the tool call in the ‘required_action` object within the run object the output is being submitted for.

Returns:

  • (String, nil)


47
# File 'lib/openai/models/beta/threads/run_submit_tool_outputs_params.rb', line 47

optional :tool_call_id, String