API Reference
City HTTP
City-owned HTTP transport for Agents and Workspaces
City HTTP
HTTP is owned by City, not by an individual Agent. Use city.http() to expose every
registered Agent through one listener.
const http = await city.http({ host: "127.0.0.1", port: 5314 });
console.log(http.binding()?.url);
await city.close();Requests use the route prefix
/agents/<agent_id>/workspaces/<workspace_id>. See City transport
for the complete composition example.