Class: OpenAI::Models::Responses::ResponseOutputTextAnnotationAddedEvent::Annotation::ContainerFileCitation
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- OpenAI::Models::Responses::ResponseOutputTextAnnotationAddedEvent::Annotation::ContainerFileCitation
- Defined in:
- lib/openai/models/responses/response_output_text_annotation_added_event.rb,
sig/openai/models/responses/response_output_text_annotation_added_event.rbs
Instance Attribute Summary collapse
-
#container_id ⇒ String
The ID of the container file.
-
#end_index ⇒ Integer
The index of the last character of the container file citation in the message.
-
#file_id ⇒ String
The ID of the file.
-
#filename ⇒ String
The filename of the container file cited.
-
#start_index ⇒ Integer
The index of the first character of the container file citation in the message.
-
#type ⇒ :container_file_citation
The type of the container file citation.
Attributes inherited from Internal::Type::BaseModel
Instance Method Summary collapse
-
#initialize ⇒ ContainerFileCitation
constructor
A new instance of ContainerFileCitation.
- #to_hash ⇒ { container_id: String, end_index: Integer, file_id: String, filename: String, start_index: Integer, ?type: :container_file_citation }
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 ⇒ ContainerFileCitation
Returns a new instance of ContainerFileCitation.
217 218 219 220 221 222 223 224 |
# File 'sig/openai/models/responses/response_output_text_annotation_added_event.rbs', line 217
def initialize: (
container_id: String,
end_index: Integer,
file_id: String,
filename: String,
start_index: Integer,
?type: :container_file_citation
) -> void
|
Instance Attribute Details
#container_id ⇒ String
The ID of the container file.
202 |
# File 'lib/openai/models/responses/response_output_text_annotation_added_event.rb', line 202 required :container_id, String |
#end_index ⇒ Integer
The index of the last character of the container file citation in the message.
208 |
# File 'lib/openai/models/responses/response_output_text_annotation_added_event.rb', line 208 required :end_index, Integer |
#file_id ⇒ String
The ID of the file.
214 |
# File 'lib/openai/models/responses/response_output_text_annotation_added_event.rb', line 214 required :file_id, String |
#filename ⇒ String
The filename of the container file cited.
220 |
# File 'lib/openai/models/responses/response_output_text_annotation_added_event.rb', line 220 required :filename, String |
#start_index ⇒ Integer
The index of the first character of the container file citation in the message.
226 |
# File 'lib/openai/models/responses/response_output_text_annotation_added_event.rb', line 226 required :start_index, Integer |
#type ⇒ :container_file_citation
The type of the container file citation. Always container_file_citation.
232 |
# File 'lib/openai/models/responses/response_output_text_annotation_added_event.rb', line 232 required :type, const: :container_file_citation |
Instance Method Details
#to_hash ⇒ { container_id: String, end_index: Integer, file_id: String, filename: String, start_index: Integer, ?type: :container_file_citation }
226 227 228 229 230 231 232 233 |
# File 'sig/openai/models/responses/response_output_text_annotation_added_event.rbs', line 226
def to_hash: -> {
container_id: String,
end_index: Integer,
file_id: String,
filename: String,
start_index: Integer,
?type: :container_file_citation
}
|