Class: A2A::FilePart
- Inherits:
-
ProtocolStruct
- Object
- Dry::Struct
- ProtocolStruct
- A2A::FilePart
- Defined in:
- lib/a2a/types/file_part.rb
Overview
Represents a part of a message containing file content.
Instance Method Summary collapse
-
#file ⇒ FileContent
The file content, provided either inline or via URI.
-
#metadata ⇒ Hash?
Optional metadata associated with this file part.
-
#type ⇒ String
Type identifier for this part.
Methods included from Extensions::CaseTransformation
Instance Method Details
#file ⇒ FileContent
Returns The file content, provided either inline or via URI.
10 |
# File 'lib/a2a/types/file_part.rb', line 10 attribute :file, Types::Constructor(FileContent) |
#metadata ⇒ Hash?
Returns Optional metadata associated with this file part.
13 |
# File 'lib/a2a/types/file_part.rb', line 13 attribute? :metadata, Types::Hash.optional |
#type ⇒ String
Returns Type identifier for this part.
7 |
# File 'lib/a2a/types/file_part.rb', line 7 attribute :type, Types::String.constant('file') |