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