Class: OpenAI::Models::Beta::BetaResponseOutputText::Annotation::FileCitation
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- OpenAI::Models::Beta::BetaResponseOutputText::Annotation::FileCitation
- Defined in:
- lib/openai/models/beta/beta_response_output_text.rb,
sig/openai/models/beta/beta_response_output_text.rbs
Instance Attribute Summary collapse
-
#file_id ⇒ String
The ID of the file.
-
#filename ⇒ String
The filename of the file cited.
-
#index ⇒ Integer
The index in the output text at which to insert the file citation.
-
#type ⇒ :file_citation
The type of the file citation.
Attributes inherited from Internal::Type::BaseModel
Instance Method Summary collapse
-
#initialize ⇒ FileCitation
constructor
A new instance of FileCitation.
- #to_hash ⇒ { file_id: String, filename: String, index: Integer, ?type: :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 ⇒ FileCitation
Returns a new instance of FileCitation.
88 89 90 91 92 93 |
# File 'sig/openai/models/beta/beta_response_output_text.rbs', line 88
def initialize: (
file_id: String,
filename: String,
index: Integer,
?type: :file_citation
) -> void
|
Instance Attribute Details
#file_id ⇒ String
The ID of the file.
73 |
# File 'lib/openai/models/beta/beta_response_output_text.rb', line 73 required :file_id, String |
#filename ⇒ String
The filename of the file cited.
79 |
# File 'lib/openai/models/beta/beta_response_output_text.rb', line 79 required :filename, String |
#index ⇒ Integer
The index in the output text at which to insert the file citation.
85 |
# File 'lib/openai/models/beta/beta_response_output_text.rb', line 85 required :index, Integer |
#type ⇒ :file_citation
The type of the file citation. Always file_citation.
91 |
# File 'lib/openai/models/beta/beta_response_output_text.rb', line 91 required :type, const: :file_citation |
Instance Method Details
#to_hash ⇒ { file_id: String, filename: String, index: Integer, ?type: :file_citation }
95 96 97 98 99 100 |
# File 'sig/openai/models/beta/beta_response_output_text.rbs', line 95
def to_hash: -> {
file_id: String,
filename: String,
index: Integer,
?type: :file_citation
}
|