Class: OpenAI::Models::Responses::ResponseItemList
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- OpenAI::Models::Responses::ResponseItemList
- Defined in:
- lib/openai/models/responses/response_item_list.rb,
sig/openai/models/responses/response_item_list.rbs
Instance Attribute Summary collapse
-
#data ⇒ ::Array[OpenAI::Models::Responses::response_item]
A list of items used to generate this response.
-
#first_id ⇒ String
The ID of the first item in the list.
-
#has_more ⇒ Boolean
Whether there are more items available.
-
#last_id ⇒ String
The ID of the last item in the list.
-
#object ⇒ :list
The type of object returned, must be
list.
Attributes inherited from Internal::Type::BaseModel
Instance Method Summary collapse
-
#initialize ⇒ ResponseItemList
constructor
A new instance of ResponseItemList.
- #to_hash ⇒ { data: ::Array[OpenAI::Models::Responses::response_item], first_id: String, has_more: bool, last_id: String, ?object: :list }
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 ⇒ ResponseItemList
Returns a new instance of ResponseItemList.
41 42 43 44 45 46 47 |
# File 'sig/openai/models/responses/response_item_list.rbs', line 41
def initialize: (
data: ::Array[OpenAI::Models::Responses::response_item],
first_id: String,
has_more: bool,
last_id: String,
?object: :list
) -> void
|
Instance Attribute Details
#data ⇒ ::Array[OpenAI::Models::Responses::response_item]
A list of items used to generate this response.
11 |
# File 'lib/openai/models/responses/response_item_list.rb', line 11 required :data, -> { OpenAI::Internal::Type::ArrayOf[union: OpenAI::Responses::ResponseItem] } |
#first_id ⇒ String
The ID of the first item in the list.
17 |
# File 'lib/openai/models/responses/response_item_list.rb', line 17 required :first_id, String |
#has_more ⇒ Boolean
Whether there are more items available.
23 |
# File 'lib/openai/models/responses/response_item_list.rb', line 23 required :has_more, OpenAI::Internal::Type::Boolean |
#last_id ⇒ String
The ID of the last item in the list.
29 |
# File 'lib/openai/models/responses/response_item_list.rb', line 29 required :last_id, String |
#object ⇒ :list
The type of object returned, must be list.
35 |
# File 'lib/openai/models/responses/response_item_list.rb', line 35 required :object, const: :list |
Instance Method Details
#to_hash ⇒ { data: ::Array[OpenAI::Models::Responses::response_item], first_id: String, has_more: bool, last_id: String, ?object: :list }
49 50 51 52 53 54 55 |
# File 'sig/openai/models/responses/response_item_list.rbs', line 49
def to_hash: -> {
data: ::Array[OpenAI::Models::Responses::response_item],
first_id: String,
has_more: bool,
last_id: String,
?object: :list
}
|