Class: A2A::FilePart
- 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
-
#file ⇒ FileWithBytes | FileWithUri
The file content, represented as either a URI or as base64-encoded bytes.
-
#kind ⇒ String
The type of this part, used as a discriminator.
Methods inherited from PartBase
Methods included from Extensions::CaseTransformation
Instance Method Details
#file ⇒ FileWithBytes | FileWithUri
Returns The file content, represented as either a URI or as base64-encoded bytes.
11 |
# File 'lib/a2a/types/file_part.rb', line 11 attribute :file, Types::Constructor(FileWithBytes | FileWithUri) |
#kind ⇒ String
Returns 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') |