Skip to main content

Module message

Module message 

Source
Expand description

agents message — unary delivery primitive with a total FIFO order.

Addresses an agent with the same shape as agents spawn (ref / tag / instance). A plain ref execs a detached agents spawn child carrying the message inline and returns the child’s first item (Id). An instance or tag ALWAYS enqueues first — the queue row’s id fixes the delivery position at commit time — then races the agent’s lock; winning it execs a WAKE-UP spawn child (EMPTY message, the lock TRANSFERRED into it) that drains the queue oldest-id-first. Either way the call resolves Delivered when its own row is consumed, so delivery order is always enqueue order. For fire-and-forget parking without the race, see agents enqueue.

Modules§

request_schema
response_schema

Structs§

Args
Command
ListenerExecution
One /listen broadcast run of agents message: the actual Request, the producer’s AgentArguments, and the unary response future. See crate::cli::broadcast_listener.
MessageArgs
Request
RequestDangerousAdvanced

Enums§

Path
RequestMessage
Response
Unary response. Exactly one of these per call. Internally tagged via type; bare unit variant Delivered serializes as {"type":"delivered"}.
Schema

Functions§

execute
execute_transform