pub enum Event {
In {
from: String,
performative: Performative,
pattern: Option<String>,
fields: Option<BTreeMap<String, FieldValue>>,
},
Breach,
InternalError(String),
Tick(i64),
SessionClosed,
SessionOpened {
role: String,
},
Expired,
}Expand description
Something that happens TO the agent.
Variants§
In
an incoming speech act from another role (fields = structured
payload for content matching, §34) — §46: values are TYPED on the
wire (FieldValue); string literals convert implicitly, so existing
construction sites keep compiling, and native int/float/bool skip
the infer_value heuristic entirely
Breach
an owed commitment was broken (by the OTHER side or by time)
InternalError(String)
§38.7: an internal action failure (set/push/put eval error, send
retry exhaustion) — routed to the session’s on error handler
Tick(i64)
§49: a host time advance — journaled so replay reproduces timers, awaits and retry deadlines EXACTLY
SessionClosed
§49: a session close — journaled so replay closes the same sessions
SessionOpened
§54: a session OPEN — journaled IN ORDER (with the role) so replay respects capacity and session-ID reincarnations
Expired
the deadline passed