Class: A2A::FileBase

Inherits:
ProtocolStruct
  • Object
show all
Defined in:
lib/a2a/types/file_base.rb

Overview

Defines base properties for a file.

Direct Known Subclasses

FileWithBytes, FileWithUri

Instance Method Summary collapse

Methods included from Extensions::CaseTransformation

#camelize, included, #to_json

Instance Method Details

#mime_typeString?

Returns The MIME type of the file (e.g., “application/pdf”).

Returns:

  • (String, nil)

    The MIME type of the file (e.g., “application/pdf”).



10
# File 'lib/a2a/types/file_base.rb', line 10

attribute? :mime_type, Types::String.optional

#nameString?

Returns An optional name for the file (e.g., “document.pdf”).

Returns:

  • (String, nil)

    An optional name for the file (e.g., “document.pdf”).



7
# File 'lib/a2a/types/file_base.rb', line 7

attribute? :name, Types::String.optional