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))
Source
new(type : String, sender_id : String, payload : Hash(String, String | Int32 | Float64 | Array(String) | Bool))
Source
new(pull : JSON::PullParser)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

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