def answer
import ezmcp@0.1.0.0/src/server.bend as Serverimport Base
import emerging-ezjson@1.2.0.0/src/value.bend as Value
import ezmcp@0.1.0.0/src/rpc.bend as Rpc
264# a request's step as an act
265def answer(id: Value.Json, text: Step) -> Act:
266 match text:
267 case Now{out}:
268 Send{Rpc.reply(id, out)}
269 case Call{name, args}:
270 Run{id, name, args}