Class: A2A::FilePart

Inherits:
PartBase
  • Object
show all
Defined in:
lib/a2a/types/file_part.rb

Overview

Represents a file segment within a message or artifact. The file content can be provided either directly as bytes or as a URI.

Instance Method Summary collapse

Methods inherited from PartBase

#metadata

Methods included from Extensions::CaseTransformation

#camelize, included, #to_json

Instance Method Details

#fileFileWithBytes | FileWithUri

Returns The file content, represented as either a URI or as base64-encoded bytes.

Returns:



11
# File 'lib/a2a/types/file_part.rb', line 11

attribute :file, Types::Constructor(FileWithBytes | FileWithUri)

#kindString

Returns The type of this part, used as a discriminator. Always ‘file’.

Returns:

  • (String)

    The type of this part, used as a discriminator. Always ‘file’.



8
# File 'lib/a2a/types/file_part.rb', line 8

attribute :kind, Types::String.constant('file')