API Reference
City RPC
City-owned RPC transport for Agents and Workspaces
City RPC
RPC is owned by City, not by an individual Agent. Use city.rpc() to expose every
registered Agent through one NDJSON-over-TCP listener.
const rpc = await city.rpc({ host: "127.0.0.1", port: 15314 });
console.log(rpc.binding()?.url);
await city.close();Remote clients use the route rpc://host:port/<agent_id>/<workspace_id>. See City transport
for the complete composition example.