/** * RemoteAgent:统一远程 SDK 客户端。 * * 关键点(中文) * - 对外只暴露一个 `url` 入口,不向用户暴露 transport 细节。 * - 当前内部支持 `http/https` 与 `rpc` 两种访问方式。 * - `RemoteAgent` 只负责远程访问,不重复实现第二套会话编排器。 */ import type { AgentSessions, RemoteAgentSession } from "../types/agent/SessionActor.js"; import type { RemoteAgentOptions } from "../types/agent/RemoteAgentOptions.js"; import type { RemoteAgentPluginActionInput, RemoteAgentPluginActionResult } from "../types/agent/RemoteAgentPluginAction.js"; /** * RemoteAgent:远程 Agent 客户端。 */ export declare class RemoteAgent { readonly sessions: AgentSessions; private readonly transport; constructor(options: RemoteAgentOptions); /** * 执行远程 Agent runtime 内的 plugin action。 * * 关键点(中文) * - 这是 RemoteAgent 顶层能力,不绑定某个 session。 * - Shell approval 通过具体 RemoteSession 处理。 */ run_plugin_action(input: RemoteAgentPluginActionInput): Promise; /** * 关闭远程 transport。 * * 关键点(中文) * - `rpc://` 会关闭底层长连接。 * - `http://` / `https://` 没有常驻连接,调用时是安全 no-op。 */ close(): Promise; } //# sourceMappingURL=RemoteAgent.d.ts.map