Class: OpenAI::Models::Beta::BetaResponseSteerInput::ResponseSteerInputItemList::FunctionCallOutput

Inherits:
Internal::Type::BaseModel
  • Object
show all
Defined in:
lib/openai/models/beta/beta_response_steer_input.rb,
sig/openai/models/beta/beta_response_steer_input.rbs

Defined Under Namespace

Modules: Caller, Output, Status Classes: Agent

Instance Attribute Summary collapse

Attributes inherited from Internal::Type::BaseModel

#last_response

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Internal::Type::BaseModel

==, #==, #[], #_request_id, #_set_last_response, coerce, #deconstruct_keys, #deep_to_h, dump, #encode_with, 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, coerce_cached, coerce_with_error, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, resolve_type, 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(caller_id:, type: :program) ⇒ FunctionCallOutput

Returns a new instance of FunctionCallOutput.

Parameters:

  • output —

    Text, image, or file output of the function tool call.

  • id —

    The unique ID of the function tool call output. Populated when this item is returned via API.

  • agent —

    The agent that produced this item.

  • call_id —

    The unique ID of the function tool call generated by the model.

  • caller_ —

    The execution context that produced this tool call.

  • name —

    The name of the tool that produced the output.

  • namespace —

    The namespace of the tool that produced the output.

  • status —

    The status of the item. One of in_progress, completed, or incomplete. Populated when items are returned via API.

  • type (defaults to: :program) —

    The type of the function tool call output. Always function_call_output.

  • output: (OpenAI::Models::Beta::BetaResponseSteerInput::ResponseSteerInputItemList::FunctionCallOutput::output)
  • id: (String, nil)
  • agent: (OpenAI::Beta::BetaResponseSteerInput::ResponseSteerInputItemList::FunctionCallOutput::Agent, nil)
  • call_id: (String, nil)
  • caller_: (OpenAI::Models::Beta::BetaResponseSteerInput::ResponseSteerInputItemList::FunctionCallOutput::caller_, nil)
  • name: (String, nil)
  • namespace: (String, nil)
  • status: (OpenAI::Models::Beta::BetaResponseSteerInput::ResponseSteerInputItemList::FunctionCallOutput::status, nil)
  • type: (:function_call_output) (defaults to: :program)


# File 'lib/openai/models/beta/beta_response_steer_input.rb', line 222

Instance Attribute Details

#agent ⇒ OpenAI::Beta::BetaResponseSteerInput::ResponseSteerInputItemList::FunctionCallOutput::Agent?

The agent that produced this item.

Returns:

  • (OpenAI::Beta::BetaResponseSteerInput::ResponseSteerInputItemList::FunctionCallOutput::Agent, nil)


170
171
172
173
174
175
176
# File 'lib/openai/models/beta/beta_response_steer_input.rb', line 170

optional(
  :agent,
  -> {
    OpenAI::Beta::BetaResponseSteerInput::ResponseSteerInputItemList::FunctionCallOutput::Agent
  },
  nil?: true
)

#call_id ⇒ String?

The unique ID of the function tool call generated by the model.

Returns:

  • (String, nil)


182
# File 'lib/openai/models/beta/beta_response_steer_input.rb', line 182

optional :call_id, String, nil?: true

#caller_ ⇒ OpenAI::Models::Beta::BetaResponseSteerInput::ResponseSteerInputItemList::FunctionCallOutput::caller_?

The execution context that produced this tool call.

Returns:

  • (OpenAI::Models::Beta::BetaResponseSteerInput::ResponseSteerInputItemList::FunctionCallOutput::caller_, nil)


188
189
190
191
192
193
194
195
# File 'lib/openai/models/beta/beta_response_steer_input.rb', line 188

optional(
  :caller_,
  union: -> {
    OpenAI::Beta::BetaResponseSteerInput::ResponseSteerInputItemList::FunctionCallOutput::Caller
  },
  api_name: :caller,
  nil?: true
)

#id ⇒ String?

The unique ID of the function tool call output. Populated when this item is returned via API.

Returns:

  • (String, nil)


164
# File 'lib/openai/models/beta/beta_response_steer_input.rb', line 164

optional :id, String, nil?: true

#name ⇒ String?

The name of the tool that produced the output.

Returns:

  • (String, nil)


201
# File 'lib/openai/models/beta/beta_response_steer_input.rb', line 201

optional :name, String, nil?: true

#namespace ⇒ String?

The namespace of the tool that produced the output.

Returns:

  • (String, nil)


207
# File 'lib/openai/models/beta/beta_response_steer_input.rb', line 207

optional :namespace, String, nil?: true

#output ⇒ OpenAI::Models::Beta::BetaResponseSteerInput::ResponseSteerInputItemList::FunctionCallOutput::output

Text, image, or file output of the function tool call.

Returns:

  • (OpenAI::Models::Beta::BetaResponseSteerInput::ResponseSteerInputItemList::FunctionCallOutput::output)


146
147
148
149
150
151
# File 'lib/openai/models/beta/beta_response_steer_input.rb', line 146

required(
  :output,
  union: -> {
    OpenAI::Beta::BetaResponseSteerInput::ResponseSteerInputItemList::FunctionCallOutput::Output
  }
)

#status ⇒ OpenAI::Models::Beta::BetaResponseSteerInput::ResponseSteerInputItemList::FunctionCallOutput::status?

The status of the item. One of in_progress, completed, or incomplete. Populated when items are returned via API.

Returns:

  • (OpenAI::Models::Beta::BetaResponseSteerInput::ResponseSteerInputItemList::FunctionCallOutput::status, nil)


214
215
216
217
218
219
220
# File 'lib/openai/models/beta/beta_response_steer_input.rb', line 214

optional(
  :status,
  enum: -> {
    OpenAI::Beta::BetaResponseSteerInput::ResponseSteerInputItemList::FunctionCallOutput::Status
  },
  nil?: true
)

#type ⇒ :function_call_output

The type of the function tool call output. Always function_call_output.

Returns:

  • (:function_call_output)


157
# File 'lib/openai/models/beta/beta_response_steer_input.rb', line 157

required :type, const: :function_call_output

Class Method Details

.variants ⇒ Array(OpenAI::Models::Beta::BetaResponseSteerInput::ResponseSteerInputItemList::FunctionCallOutput::Caller::Direct, OpenAI::Models::Beta::BetaResponseSteerInput::ResponseSteerInputItemList::FunctionCallOutput::Caller::Program)



# File 'lib/openai/models/beta/beta_response_steer_input.rb', line 266

Instance Method Details

#to_hash ⇒ { output: OpenAI::Models::Beta::BetaResponseSteerInput::ResponseSteerInputItemList::FunctionCallOutput::output, ?type: :function_call_output, ?id: String?, ?agent: OpenAI::Beta::BetaResponseSteerInput::ResponseSteerInputItemList::FunctionCallOutput::Agent?, ?call_id: String?, ?caller_: OpenAI::Models::Beta::BetaResponseSteerInput::ResponseSteerInputItemList::FunctionCallOutput::caller_?, ?name: String?, ?namespace: String?, ?status: OpenAI::Models::Beta::BetaResponseSteerInput::ResponseSteerInputItemList::FunctionCallOutput::status? }

Returns:

  • ({ output: OpenAI::Models::Beta::BetaResponseSteerInput::ResponseSteerInputItemList::FunctionCallOutput::output, ?type: :function_call_output, ?id: String?, ?agent: OpenAI::Beta::BetaResponseSteerInput::ResponseSteerInputItemList::FunctionCallOutput::Agent?, ?call_id: String?, ?caller_: OpenAI::Models::Beta::BetaResponseSteerInput::ResponseSteerInputItemList::FunctionCallOutput::caller_?, ?name: String?, ?namespace: String?, ?status: OpenAI::Models::Beta::BetaResponseSteerInput::ResponseSteerInputItemList::FunctionCallOutput::status? })


180
181
182
183
184
185
186
187
188
189
190
# File 'sig/openai/models/beta/beta_response_steer_input.rbs', line 180

def to_hash: -> {
  output: OpenAI::Models::Beta::BetaResponseSteerInput::ResponseSteerInputItemList::FunctionCallOutput::output,
  ?type: :function_call_output,
  ?id: String?,
  ?agent: OpenAI::Beta::BetaResponseSteerInput::ResponseSteerInputItemList::FunctionCallOutput::Agent?,
  ?call_id: String?,
  ?caller_: OpenAI::Models::Beta::BetaResponseSteerInput::ResponseSteerInputItemList::FunctionCallOutput::caller_?,
  ?name: String?,
  ?namespace: String?,
  ?status: OpenAI::Models::Beta::BetaResponseSteerInput::ResponseSteerInputItemList::FunctionCallOutput::status?
}