Class: OpenAI::Models::Responses::ResponseContentPartDoneEvent

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

Defined Under Namespace

Modules: Part

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(content_index: , item_id: , output_index: , part: , sequence_number: , type: :"response.content_part.done") ⇒ Object

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

Emitted when a content part is done.

Parameters:

  • content_index (Integer) (defaults to: )

    The index of the content part that is done.

  • item_id (String) (defaults to: )

    The ID of the output item that the content part was added to.

  • output_index (Integer) (defaults to: )

    The index of the output item that the content part was added to.

  • part (OpenAI::Models::Responses::ResponseOutputText, OpenAI::Models::Responses::ResponseOutputRefusal) (defaults to: )

    The content part that is done.

  • sequence_number (Integer) (defaults to: )

    The sequence number of this event.

  • type (Symbol, :"response.content_part.done") (defaults to: :"response.content_part.done")

    The type of the event. Always ‘response.content_part.done`.



# File 'lib/openai/models/responses/response_content_part_done_event.rb', line 43

Instance Attribute Details

#content_indexInteger

The index of the content part that is done.

Returns:

  • (Integer)


11
# File 'lib/openai/models/responses/response_content_part_done_event.rb', line 11

required :content_index, Integer

#item_idString

The ID of the output item that the content part was added to.

Returns:

  • (String)


17
# File 'lib/openai/models/responses/response_content_part_done_event.rb', line 17

required :item_id, String

#output_indexInteger

The index of the output item that the content part was added to.

Returns:

  • (Integer)


23
# File 'lib/openai/models/responses/response_content_part_done_event.rb', line 23

required :output_index, Integer

#partOpenAI::Models::Responses::ResponseOutputText, OpenAI::Models::Responses::ResponseOutputRefusal

The content part that is done.



29
# File 'lib/openai/models/responses/response_content_part_done_event.rb', line 29

required :part, union: -> { OpenAI::Responses::ResponseContentPartDoneEvent::Part }

#sequence_numberInteger

The sequence number of this event.

Returns:

  • (Integer)


35
# File 'lib/openai/models/responses/response_content_part_done_event.rb', line 35

required :sequence_number, Integer

#typeSymbol, :"response.content_part.done"

The type of the event. Always ‘response.content_part.done`.

Returns:

  • (Symbol, :"response.content_part.done")


41
# File 'lib/openai/models/responses/response_content_part_done_event.rb', line 41

required :type, const: :"response.content_part.done"