Class: A2A::DataPart
- Inherits:
-
ProtocolStruct
- Object
- Dry::Struct
- ProtocolStruct
- A2A::DataPart
- Defined in:
- lib/a2a/types/data_part.rb
Overview
Represents a part of a message containing structured data (JSON).
Instance Method Summary collapse
-
#data ⇒ Hash
The structured data content as a JSON object.
-
#metadata ⇒ Hash?
Optional metadata associated with this data part.
-
#type ⇒ String
Type identifier for this part.
Methods included from Extensions::CaseTransformation
Instance Method Details
#data ⇒ Hash
Returns The structured data content as a JSON object.
10 |
# File 'lib/a2a/types/data_part.rb', line 10 attribute :data, Types::Hash |
#metadata ⇒ Hash?
Returns Optional metadata associated with this data part.
13 |
# File 'lib/a2a/types/data_part.rb', line 13 attribute? :metadata, Types::Hash.optional |
#type ⇒ String
Returns Type identifier for this part.
7 |
# File 'lib/a2a/types/data_part.rb', line 7 attribute :type, Types::String.constant('data') |