Class: OpenAI::Models::Beta::BetaResponseInputItem::MultiAgentCallOutput::Output::Annotation::ContainerFileCitation

Inherits:
Internal::Type::BaseModel
  • Object
show all
Defined in:
lib/openai/models/beta/beta_response_input_item.rb,
sig/openai/models/beta/beta_response_input_item.rbs

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_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.

Parameters:

  • container_id —

    The ID of the container.

  • end_index —

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

  • file_id —

    The ID of the container file.

  • filename —

    The filename of the container file cited.

  • start_index —

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

  • type —

    The citation type. Always container_file_citation.

  • container_id: (String)
  • end_index: (Integer)
  • file_id: (String)
  • filename: (String)
  • start_index: (Integer)
  • type: (:container_file_citation)


918
919
920
921
922
923
924
925
# File 'sig/openai/models/beta/beta_response_input_item.rbs', line 918

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.

Returns:

  • (String)


1023
# File 'lib/openai/models/beta/beta_response_input_item.rb', line 1023

required :container_id, String

#end_index ⇒ Integer

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

Returns:

  • (Integer)


1029
# File 'lib/openai/models/beta/beta_response_input_item.rb', line 1029

required :end_index, Integer

#file_id ⇒ String

The ID of the container file.

Returns:

  • (String)


1035
# File 'lib/openai/models/beta/beta_response_input_item.rb', line 1035

required :file_id, String

#filename ⇒ String

The filename of the container file cited.

Returns:

  • (String)


1041
# File 'lib/openai/models/beta/beta_response_input_item.rb', line 1041

required :filename, String

#start_index ⇒ Integer

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

Returns:

  • (Integer)


1047
# File 'lib/openai/models/beta/beta_response_input_item.rb', line 1047

required :start_index, Integer

#type ⇒ :container_file_citation

The citation type. Always container_file_citation.

Returns:

  • (:container_file_citation)


1053
# File 'lib/openai/models/beta/beta_response_input_item.rb', line 1053

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 }

Returns:

  • ({ container_id: String, end_index: Integer, file_id: String, filename: String, start_index: Integer, ?type: :container_file_citation })


927
928
929
930
931
932
933
934
# File 'sig/openai/models/beta/beta_response_input_item.rbs', line 927

def to_hash: -> {
  container_id: String,
  end_index: Integer,
  file_id: String,
  filename: String,
  start_index: Integer,
  ?type: :container_file_citation
}