// Object-literal shorthand method: `obj.run(s)` must bind s to the method's param // and route it into the inner worker ask. const worker = agent("worker"); const s = await agent("s").ask("seed"); const obj = { run(x: string): Node { return worker.ask(`process ${x}`); }, }; const r = await obj.run(s); return r;