Expand description
Content Language (CL) — spec §6.2.
The shared grammar agents use inside envelope bodies: facts about the world, typed actions, queries, and commitments. This is what makes ACL a communication language (agent-agnostic semantics) rather than only a transport protocol.
Design notes:
Fact.argsis a BTreeMap so serialization is canonical (identical bytes regardless of insertion order) — required for stable signatures.well_formedis the normative grammar matrix (§6.2): which CL ops a performative may carry. Receivers SHOULD validate; encoders MUST emit well-formed bodies.
Structs§
- ClAction
- An action expression:
name(params) -> result_schema?.
Enums§
- ClExpr
- One content-language expression.
- ClValue
- Typed content value (§27): the CL’s own type system. Wire-compatible
with plain msgpack/JSON values (Str→string, Int→integer, …) so existing
encoders keep working — but Rust-level code now knows the TYPE.
Varis the exception: it serializes as a single-key map{"$var": name}to stay unambiguous withStr. - Commitment
Status - Status of a commitment (§6.2 lifecycle).
- Epistemic
- Epistemic modality of a fact (spec §6.4): how the sender holds it.
Functions§
- well_
formed - Normative grammar (spec §6.2): which CL ops each performative may carry. Returns Err with a human-readable reason on ill-formed combinations.