/** * CityRPC:在一个原生 TCP RPC Server 上暴露 City 持有的全部 Agent。 * * 请求必须携带 `agent_id` 与 `workspace_id`。`RemoteAgent` 会从 * `rpc://host:port//` 自动解析并附加字段。 */ import type { City } from "../../runtime/City.js"; import type { AgentRpcBinding, AgentRpcListenOptions } from "../types/AgentRpcBinding.js"; import type { CityRpcRuntimeOptions } from "../types/CityRpcRuntime.js"; /** 在单一 RPC 端口暴露 City 的多 Agent transport。 */ export declare class CityRPC { private readonly city; private readonly runtime_options; /** 当前 City RPC Server 的唯一串行生命周期。 */ private readonly lifecycle; constructor(city: City, runtime_options?: CityRpcRuntimeOptions); /** 监听 City 级 RPC 端口。 */ listen(options?: AgentRpcListenOptions): Promise; /** 创建并启动 City RPC Server。 */ private start_server; /** 幂等关闭 RPC Server 与全部长连接。 */ close(): Promise; /** 返回当前绑定;尚未监听时返回 null。 */ binding(): AgentRpcBinding | null; } //# sourceMappingURL=CityRPC.d.ts.map