/** * RemoteAgent HTTP transport。 * * 关键点(中文) * - 只适配 downcity Agent HTTP gateway 的 SDK routes。 * - 不处理 RemoteSession 的 turn lifecycle,避免 transport 与 actor 逻辑混在一起。 */ 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"; /** * downcity HTTP gateway transport。 */ export declare class HttpRemoteAgentTransport implements RemoteAgentTransport { private readonly base_url; private readonly token; constructor(url: string, token?: string); private headers; 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; } //# sourceMappingURL=HttpRemoteAgentTransport.d.ts.map