Class: A2A::Message

Inherits:
ProtocolStruct
  • Object
show all
Defined in:
lib/a2a/types/message.rb

Overview

Represents a single message in the conversation between a user and an agent.

Instance Method Summary collapse

Methods included from Extensions::CaseTransformation

#camelize, included, #to_json

Instance Method Details

#context_idString?



30
# File 'lib/a2a/types/message.rb', line 30

attribute? :context_id, Types::String.optional

#extensionsArray<String>?



17
# File 'lib/a2a/types/message.rb', line 17

attribute? :extensions, Types::Array.of(Types::String).optional

#kindString



33
# File 'lib/a2a/types/message.rb', line 33

attribute :kind, Types::String.constant('message')

#message_idString



23
# File 'lib/a2a/types/message.rb', line 23

attribute :message_id, Types::String

#metadataHash?



14
# File 'lib/a2a/types/message.rb', line 14

attribute? :metadata, Types::Hash.optional

#partsArray<Part>



11
# File 'lib/a2a/types/message.rb', line 11

attribute :parts, Types::Array.of(Types::Constructor(Part))

#reference_task_idsArray<String>?



20
# File 'lib/a2a/types/message.rb', line 20

attribute? :reference_task_ids, Types::Array.of(Types::String).optional

#roleString



7
# File 'lib/a2a/types/message.rb', line 7

attribute :role, Types::String.enum('user', 'agent')

#task_idString?



27
# File 'lib/a2a/types/message.rb', line 27

attribute? :task_id, Types::String.optional