bynk.agent.handler_not_found
Error Called a handler the agent does not declare.
An agent is used through the handlers it declares with on call, so a method name it does not declare is a mistake: usually a misspelling, or a handler that was never written. Check the name against the agent's declaration, or add the handler. To read a store field from a caller, add a handler that returns it.
Example
agent Counter { key id: String store n: Cell[Int]
on call get() -> Effect[Int] { n }}
let v <- Counter("a").nope() // ✗ `Counter` declares no `nope`let v <- Counter("a").get() // ✓ a declared handlerIn the Book
See also
- The grammar rule it governs:
agent_decl. - Every code in its category, Agents, on the diagnostic index.
bynk explain bynk.agent.handler_not_foundshows the same from the installed toolchain, without a network.