Class: A2A::DataPart
- Defined in:
- lib/a2a/types/data_part.rb
Overview
Represents a structured data segment (e.g., JSON) within a message or artifact.
Instance Method Summary collapse
-
#data ⇒ Hash
The structured data content.
-
#kind ⇒ String
The type of this part, used as a discriminator.
Methods inherited from PartBase
Methods included from Extensions::CaseTransformation
Instance Method Details
#data ⇒ Hash
Returns The structured data content.
10 |
# File 'lib/a2a/types/data_part.rb', line 10 attribute :data, Types::Hash |
#kind ⇒ String
Returns The type of this part, used as a discriminator. Always ‘data’.
7 |
# File 'lib/a2a/types/data_part.rb', line 7 attribute :kind, Types::String.constant('data') |