Class: OpenAI::Models::Responses::ResponseInputItem::FunctionCallOutput

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/openai/models/responses/response_input_item.rb

Defined Under Namespace

Modules: Status

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(call_id: , output: , id: nil, status: nil, type: :function_call_output) ⇒ Object

Some parameter documentations has been truncated, see OpenAI::Models::Responses::ResponseInputItem::FunctionCallOutput for more details.

The output of a function tool call.

Parameters:

  • call_id (String) (defaults to: )

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

  • output (String) (defaults to: )

    A JSON string of the output of the function tool call.

  • id (String, nil) (defaults to: nil)

    The unique ID of the function tool call output. Populated when this item is retu

  • status (Symbol, OpenAI::Models::Responses::ResponseInputItem::FunctionCallOutput::Status, nil) (defaults to: nil)

    The status of the item. One of ‘in_progress`, `completed`, or `incomplete`. Popu

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

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



# File 'lib/openai/models/responses/response_input_item.rb', line 318

Instance Attribute Details

#call_idString

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

Returns:

  • (String)


288
# File 'lib/openai/models/responses/response_input_item.rb', line 288

required :call_id, String

#idString?

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

Returns:

  • (String, nil)


307
# File 'lib/openai/models/responses/response_input_item.rb', line 307

optional :id, String, nil?: true

#outputString

A JSON string of the output of the function tool call.

Returns:

  • (String)


294
# File 'lib/openai/models/responses/response_input_item.rb', line 294

required :output, String

#statusSymbol, ...

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



314
315
316
# File 'lib/openai/models/responses/response_input_item.rb', line 314

optional :status,
enum: -> { OpenAI::Responses::ResponseInputItem::FunctionCallOutput::Status },
nil?: true

#typeSymbol, :function_call_output

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

Returns:

  • (Symbol, :function_call_output)


300
# File 'lib/openai/models/responses/response_input_item.rb', line 300

required :type, const: :function_call_output