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) ⇒ void

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

Parameters:

  • id (String) (defaults to: )

    Unique object identifier.

  • created_at (Time) (defaults to: )

    RFC 3339 datetime string representing when the file was created.

  • filename (String) (defaults to: )

    Original filename of the uploaded file.

  • mime_type (String) (defaults to: )

    MIME type of the file.

  • size_bytes (Integer) (defaults to: )

    Size of the file in bytes.

  • downloadable (Boolean) (defaults to: nil)

    Whether the file can be downloaded.

  • type (Symbol, :file) (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:

  • (Time)


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:

  • (String)


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:

  • (String)


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

required :id, String

#mime_typeString

MIME type of the file.

Returns:

  • (String)


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

required :mime_type, String

#size_bytesInteger

Size of the file in bytes.

Returns:

  • (Integer)


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:

  • (Symbol, :file)


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

required :type, const: :file