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))
Sourcenew(type : String, sender_id : String, payload : Hash(String, String | Int32 | Float64 | Array(String) | Bool))
Sourcenew(pull : JSON::PullParser)
Sourcenew(*, __pull_for_json_serializable pull : JSON::PullParser)
SourceInstance methods
payload
Sourcepayload=(payload : Hash(String, JSON::Any))
Sourcesender_id
Sourcesender_id=(sender_id : String)
Sourcetimestamp
Sourcetimestamp=(timestamp : String)
Sourcetype
Sourcetype=(type : String)
Source