struct

MultiAgent::Communication::Message

Inherits Struct < Value < Object

A message exchanged between agents

Constructors

new(sender : String, receiver : String, performative : Performative, content : String, conversation_id : String = "", in_reply_to : String | Nil = nil)

Instance methods

content
conversation_id
id
in_reply_to
performative
receiver
reply(sender : String, performative : Performative, content : String) : Message
sender
timestamp
to_s

Returns a nicely readable and concise string representation of this object, typically intended for users.

This method should usually not be overridden. It delegates to #to_s(IO) which can be overridden for custom implementations.

Also see #inspect.