Class: Anthropic::Models::Beta::FileMetadata

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/anthropic/models/beta/file_metadata.rb

Overview

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Internal::Type::BaseModel

==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, 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, #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(id:, created_at:, filename:, mime_type:, size_bytes:, downloadable: nil, type: :file) ⇒ Object

Some parameter documentations has been truncated, see Anthropic::Models::Beta::FileMetadata for more details.

Parameters:

  • Unique object identifier.

  • RFC 3339 datetime string representing when the file was created.

  • Original filename of the uploaded file.

  • MIME type of the file.

  • Size of the file in bytes.

  • (defaults to: nil)

    Whether the file can be downloaded.

  • (defaults to: :file)

    Object type.



# File 'lib/anthropic/models/beta/file_metadata.rb', line 54


Instance Attribute Details

#created_atTime

RFC 3339 datetime string representing when the file was created.

Returns:



20
# File 'lib/anthropic/models/beta/file_metadata.rb', line 20

required :created_at, Time

#downloadableBoolean?

Whether the file can be downloaded.

Returns:



52
# File 'lib/anthropic/models/beta/file_metadata.rb', line 52

optional :downloadable, Anthropic::Internal::Type::Boolean

#filenameString

Original filename of the uploaded file.

Returns:



26
# File 'lib/anthropic/models/beta/file_metadata.rb', line 26

required :filename, String

#idString

Unique object identifier.

The format and length of IDs may change over time.

Returns:



14
# File 'lib/anthropic/models/beta/file_metadata.rb', line 14

required :id, String

#mime_typeString

MIME type of the file.

Returns:



32
# File 'lib/anthropic/models/beta/file_metadata.rb', line 32

required :mime_type, String

#size_bytesInteger

Size of the file in bytes.

Returns:



38
# File 'lib/anthropic/models/beta/file_metadata.rb', line 38

required :size_bytes, Integer

#typeSymbol, :file

Object type.

For files, this is always ‘“file”`.

Returns:



46
# File 'lib/anthropic/models/beta/file_metadata.rb', line 46

required :type, const: :file