/** * RemoteAgent RPC transport。 * * 关键点(中文) * - 只把 RemoteAgent 的 session actor 方法映射到 RpcClient。 * - 长连接生命周期由 RpcClient 管理。 */ import type { AgentCreateSessionInput, AgentListSessionsInput, AgentArchiveSessionInput, AgentArchiveSessionsInput, AgentArchiveSessionResult, AgentArchiveSessionsResult, AgentCleanArchiveResult, AgentSessionForkInput, AgentSessionInfo, AgentSessionSetOptions, AgentSessionStatus, AgentSessionSummaryPage, AgentSessionSystemSnapshot, RemoteSessionSetInput } from "../../types/agent/SessionTypes.js"; import type { ListSessionMessagesInput, SessionMessagePage } from "../../types/session/SessionMessage.js"; import type { RemoteAgentPluginActionInput, RemoteAgentPluginActionResult } from "../../types/agent/RemoteAgentPluginAction.js"; import type { SessionMutation } from "../../types/session/SessionMutation.js"; import type { AgentSessionPromptInput } from "../../types/sdk/AgentSessionPrompt.js"; import type { AgentSessionStopResult } from "../../types/sdk/AgentSessionStop.js"; import type { RemoteAgentTransport, TransportSubscription } from "../../remote/RemoteTransport.js"; import type { RespondSessionInteractionInput, SessionInteractionResult, SessionPendingInteraction } from "../../types/session/SessionInteraction.js"; /** * 本机 RPC transport。 */ export declare class RpcRemoteAgentTransport implements RemoteAgentTransport { private readonly client; constructor(url: string); create_session(input?: AgentCreateSessionInput): Promise; get_info(session_id: string): Promise; prompt(session_id: string, input: AgentSessionPromptInput): Promise<{ id: string; }>; stop(session_id: string): Promise; compact(session_id: string): Promise<{ id: string; }>; subscribe(params: { session_id: string; on_ready: () => void; on_event: (event: SessionMutation) => void; on_close: (error?: unknown) => void; }): Promise; messages(session_id: string, input?: ListSessionMessagesInput): Promise; system(session_id: string): Promise; fork(session_id: string, input?: AgentSessionForkInput | string): Promise; list_sessions(input?: AgentListSessionsInput): Promise; archive_session(input: AgentArchiveSessionInput): Promise; archive_sessions(input?: AgentArchiveSessionsInput): Promise; clean_archive(): Promise; run_plugin_action(input: RemoteAgentPluginActionInput): Promise; interactions(session_id: string): Promise; status(session_id: string): Promise; set(session_id: string, input: RemoteSessionSetInput, options?: AgentSessionSetOptions): Promise; respond(session_id: string, input: RespondSessionInteractionInput): Promise; close(): Promise; } //# sourceMappingURL=RpcRemoteAgentTransport.d.ts.map