Class: A2A::Message
- Inherits:
-
ProtocolStruct
- Object
- Dry::Struct
- ProtocolStruct
- A2A::Message
- Defined in:
- lib/a2a/types/message.rb
Overview
Represents a message exchanged between a user and an agent.
Instance Method Summary collapse
-
#metadata ⇒ Hash?
Optional metadata associated with the message.
-
#parts ⇒ Array<Part>
The content of the message, composed of one or more parts.
-
#role ⇒ String
The role of the sender (user or agent).
Methods included from Extensions::CaseTransformation
Instance Method Details
#metadata ⇒ Hash?
Returns Optional metadata associated with the message.
13 |
# File 'lib/a2a/types/message.rb', line 13 attribute? :metadata, Types::Hash.optional |
#parts ⇒ Array<Part>
Returns The content of the message, composed of one or more parts.
10 |
# File 'lib/a2a/types/message.rb', line 10 attribute :parts, Types::Array.of(Types::Constructor(Part)) |
#role ⇒ String
Returns The role of the sender (user or agent).
7 |
# File 'lib/a2a/types/message.rb', line 7 attribute :role, Types::String.enum('user', 'agent') |