Module: OpenAI::Models::Responses::ResponseOutputText::Annotation

Extended by:
Internal::Type::Union
Defined in:
lib/openai/models/responses/response_output_text.rb

Overview

A citation to a file.

Defined Under Namespace

Classes: ContainerFileCitation, FileCitation, FilePath, URLCitation

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, type_info

Instance Method Details

#initialize(container_id: , end_index: , file_id: , start_index: , type: :container_file_citation) ⇒ Object

A citation for a container file used to generate a model response.

Parameters:

  • container_id (String) (defaults to: )

    The ID of the container file.

  • end_index (Integer) (defaults to: )

    The index of the last character of the container file citation in the message.

  • file_id (String) (defaults to: )

    The ID of the file.

  • start_index (Integer) (defaults to: )

    The index of the first character of the container file citation in the message.

  • type (Symbol, :container_file_citation) (defaults to: :container_file_citation)

    The type of the container file citation. Always ‘container_file_citation`.



# File 'lib/openai/models/responses/response_output_text.rb', line 91