struct

AgentZero::Message

Inherits JSON::Serializable < Struct < Value < Object

Message structure for inter-agent communication

Constructors

new(type : String, sender_id : String, payload : Hash(String, JSON::Any))
new(type : String, sender_id : String, payload : Hash(String, String | Int32 | Float64 | Array(String) | Bool))
new(pull : JSON::PullParser)
new(*, __pull_for_json_serializable pull : JSON::PullParser)

Instance methods

payload
payload=(payload : Hash(String, JSON::Any))
sender_id
sender_id=(sender_id : String)
timestamp
timestamp=(timestamp : String)
type
type=(type : String)