bynk.parse.expected_agent_storage
Error An agent declares no storage — it has no store fields.
An agent exists to hold state, and its state is its store fields, so one with none is refused. Declare at least one. A store field has a kind such as Cell, Map or Set. An agent with storage but no handler is bynk.parse.empty_agent.
Example
agent Counter { // ✗ no `store` field key id: String
on call get() -> Effect[Int] { … }}
agent Counter { key id: String store n: Cell[Int] // ✓
on call get() -> Effect[Int] { … }}In the Book
See also
- Every code in its category, Parser, on the diagnostic index.
bynk explain bynk.parse.expected_agent_storageshows the same from the installed toolchain, without a network.