Module: OpenAI::Models::Conversations::OutputTextContent::Annotation
- Extended by:
- Internal::Type::Union
- Defined in:
- lib/openai/models/conversations/output_text_content.rb
Class Method Summary collapse
Instance Method Summary collapse
Methods included from Internal::Type::Union
==, ===, coerce, dump, hash, inspect, to_sorbet_type, variants
Methods included from Internal::Util::SorbetRuntimeSupport
#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type
Methods included from Internal::Type::Converter
#coerce, coerce, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, type_info
Class Method Details
.variants ⇒ Array(OpenAI::Models::Conversations::FileCitationBody, OpenAI::Models::Conversations::URLCitationBody, OpenAI::Models::Conversations::ContainerFileCitationBody)
|
|
# File 'lib/openai/models/conversations/output_text_content.rb', line 51
|
Instance Method Details
#initialize(annotations: , text: , logprobs: nil, type: :output_text) ⇒ Object
40 41 42 43 44 45 46 47 48 49 50 51 52 53 |
# File 'lib/openai/models/conversations/output_text_content.rb', line 40 module Annotation extend OpenAI::Internal::Type::Union discriminator :type variant :file_citation, -> { OpenAI::Conversations::FileCitationBody } variant :url_citation, -> { OpenAI::Conversations::URLCitationBody } variant :container_file_citation, -> { OpenAI::Conversations::ContainerFileCitationBody } # @!method self.variants # @return [Array(OpenAI::Models::Conversations::FileCitationBody, OpenAI::Models::Conversations::URLCitationBody, OpenAI::Models::Conversations::ContainerFileCitationBody)] end |