Class: OpenAI::Models::Beta::ChatKit::ChatKitResponseOutputText::Annotation::File::Source

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

Overview

See Also:

  • OpenAI::Models::Beta::ChatKit::ChatKitResponseOutputText::Annotation::File#source

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

Returns a new instance of Source.

Parameters:

  • filename —

    Filename referenced by the annotation.

  • type —

    Type discriminator that is always file.

  • filename: (String)
  • type: (:file)


89
# File 'sig/openai/models/beta/chatkit/chatkit_response_output_text.rbs', line 89

def initialize: (filename: String, ?type: :file) -> void

Instance Attribute Details

#filename ⇒ String

Filename referenced by the annotation.

Returns:

  • (String)


81
# File 'lib/openai/models/beta/chatkit/chatkit_response_output_text.rb', line 81

required :filename, String

#type ⇒ :file

Type discriminator that is always file.

Returns:

  • (:file)


87
# File 'lib/openai/models/beta/chatkit/chatkit_response_output_text.rb', line 87

required :type, const: :file

Instance Method Details

#to_hash ⇒ { filename: String, ?type: :file }

Returns:

  • ({ filename: String, ?type: :file })


91
# File 'sig/openai/models/beta/chatkit/chatkit_response_output_text.rbs', line 91

def to_hash: -> { filename: String, ?type: :file }