Expand description
agents message — unary delivery primitive.
Addresses an agent with the same shape as agents spawn (ref /
tag / instance). The handler races a lock: winning it (or
targeting a plain ref) execs a detached agents spawn child
with the lock TRANSFERRED into it and returns the child’s first
item (Id); losing it enqueues, then waits for whichever comes
first — the queue row marked inactive (Delivered) or the lock
freeing up (exec the spawn child after all → Id). For
fire-and-forget parking without the race, see agents enqueue.
Modules§
Structs§
- Args
- Command
- Listener
Execution - One
/listenbroadcast run ofagents message: the actualRequest, the producer’sAgentArguments, and the unary response future. Seecrate::cli::websocket_listener. - Message
Args - Request
- Request
Dangerous Advanced
Enums§
- Path
- Request
Message - Response
- Unary response. Exactly one of these per call. Internally tagged
via
type; bare unit variantDeliveredserializes as{"type":"delivered"}. - Schema