Class: OpenAI::Models::ChatCompletionContentPart::Chat::ChatCompletionContentPart::File::File

Inherits:
Internal::Type::BaseModel show all
Defined in:
sig/openai/models/chat/chat_completion_content_part.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_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

#initializeObject



60
# File 'sig/openai/models/chat/chat_completion_content_part.rbs', line 60

def initialize: (

Instance Attribute Details

#file_dataString? (readonly)

Returns the value of attribute file_data.

Returns:

  • (String, nil)


48
49
50
# File 'sig/openai/models/chat/chat_completion_content_part.rbs', line 48

def file_data
  @file_data
end

#file_idString? (readonly)

Returns the value of attribute file_id.

Returns:

  • (String, nil)


52
53
54
# File 'sig/openai/models/chat/chat_completion_content_part.rbs', line 52

def file_id
  @file_id
end

#filenameString? (readonly)

Returns the value of attribute filename.

Returns:

  • (String, nil)


56
57
58
# File 'sig/openai/models/chat/chat_completion_content_part.rbs', line 56

def filename
  @filename
end

Instance Method Details

#file_data=String (readonly)

Parameters:

  • (String)

Returns:

  • (String)


50
# File 'sig/openai/models/chat/chat_completion_content_part.rbs', line 50

def file_data=: (String) -> String

#file_id=String (readonly)

Parameters:

  • (String)

Returns:

  • (String)


54
# File 'sig/openai/models/chat/chat_completion_content_part.rbs', line 54

def file_id=: (String) -> String

#filename=String (readonly)

Parameters:

  • (String)

Returns:

  • (String)


58
# File 'sig/openai/models/chat/chat_completion_content_part.rbs', line 58

def filename=: (String) -> String

#to_hash{

Returns:

  • ({)


66
# File 'sig/openai/models/chat/chat_completion_content_part.rbs', line 66

def to_hash: -> {