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

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

Defined Under Namespace

Modules: Annotation

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 ⇒ Output

Returns a new instance of Output.

Parameters:

  • text —

    The text content.

  • annotations —

    Citations associated with the text content.

  • type —

    The content type. Always output_text.

  • text: (String)
  • annotations: (::Array[OpenAI::Models::Beta::BetaResponseInputItem::MultiAgentCallOutput::Output::annotation])
  • type: (:output_text)


761
762
763
764
765
# File 'sig/openai/models/beta/beta_response_input_item.rbs', line 761

def initialize: (
  text: String,
  ?annotations: ::Array[OpenAI::Models::Beta::BetaResponseInputItem::MultiAgentCallOutput::Output::annotation],
  ?type: :output_text
) -> void

Instance Attribute Details

#annotations ⇒ ::Array[OpenAI::Models::Beta::BetaResponseInputItem::MultiAgentCallOutput::Output::annotation]?

Citations associated with the text content.

Returns:

  • (::Array[OpenAI::Models::Beta::BetaResponseInputItem::MultiAgentCallOutput::Output::annotation], nil)


891
892
893
894
895
896
897
898
# File 'lib/openai/models/beta/beta_response_input_item.rb', line 891

optional(
  :annotations,
  -> {
    OpenAI::Internal::Type::ArrayOf[
      union: OpenAI::Beta::BetaResponseInputItem::MultiAgentCallOutput::Output::Annotation
    ]
  }
)

#text ⇒ String

The text content.

Returns:

  • (String)


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

required :text, String

#type ⇒ :output_text

The content type. Always output_text.

Returns:

  • (:output_text)


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

required :type, const: :output_text

Instance Method Details

#to_hash ⇒ { text: String, ?type: :output_text, ?annotations: ::Array[OpenAI::Models::Beta::BetaResponseInputItem::MultiAgentCallOutput::Output::annotation] }

Returns:

  • ({ text: String, ?type: :output_text, ?annotations: ::Array[OpenAI::Models::Beta::BetaResponseInputItem::MultiAgentCallOutput::Output::annotation] })


767
768
769
770
771
# File 'sig/openai/models/beta/beta_response_input_item.rbs', line 767

def to_hash: -> {
  text: String,
  ?type: :output_text,
  ?annotations: ::Array[OpenAI::Models::Beta::BetaResponseInputItem::MultiAgentCallOutput::Output::annotation]
}