Class: OpenAI::Models::Beta::Threads::FileCitationAnnotation

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/openai/models/beta/threads/file_citation_annotation.rb,
sig/openai/models/beta/threads/file_citation_annotation.rbs

Defined Under Namespace

Classes: FileCitation

Instance Attribute Summary collapse

Attributes inherited from Internal::Type::BaseModel

#last_response

Instance Method Summary collapse

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_with_error, dump, #dump, #inspect, inspect, meta_info, new_coerce_state, 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(end_index:, file_citation:, start_index:, text:, type: :file_citation) ⇒ Object



# File 'lib/openai/models/beta/threads/file_citation_annotation.rb', line 35


Instance Attribute Details

#end_indexInteger



11
# File 'lib/openai/models/beta/threads/file_citation_annotation.rb', line 11

required :end_index, Integer

#file_citationOpenAI::Models::Beta::Threads::FileCitationAnnotation::FileCitation



16
# File 'lib/openai/models/beta/threads/file_citation_annotation.rb', line 16

required :file_citation, -> { OpenAI::Beta::Threads::FileCitationAnnotation::FileCitation }

#start_indexInteger



21
# File 'lib/openai/models/beta/threads/file_citation_annotation.rb', line 21

required :start_index, Integer

#textString

The text in the message content that needs to be replaced.



27
# File 'lib/openai/models/beta/threads/file_citation_annotation.rb', line 27

required :text, String

#type:file_citation

Always file_citation.



33
# File 'lib/openai/models/beta/threads/file_citation_annotation.rb', line 33

required :type, const: :file_citation

Instance Method Details

#to_hash{



39
# File 'sig/openai/models/beta/threads/file_citation_annotation.rbs', line 39

def to_hash: -> {