import { Response } from 'express'; import { AgentsService } from './agents.service.js'; export declare class AgentsController { private readonly agentsService; constructor(agentsService: AgentsService); createSession(body: { id?: string; agentId?: string; workspace?: string; provider?: string; model?: string; title?: string; type?: 'chat' | 'scheduled' | 'system'; }): Promise<{ success: boolean; data: import("./agents.service.js").AgentSession; }>; getSessions(): { success: boolean; data: import("./agents.service.js").AgentSession[]; }; getSession(id: string): { success: boolean; data: import("./agents.service.js").AgentSession; }; updateSession(id: string, body: { agentId?: string; }): { success: boolean; data: import("./agents.service.js").AgentSession | undefined; }; deleteSession(id: string): Promise<{ success: boolean; message: string; }>; getHistory(id: string): { success: boolean; data: import("./agents.service.js").ChatMessage[]; }; clearHistory(id: string): { success: boolean; message: string; }; appendMessage(id: string, body: { role: 'user' | 'assistant'; content: string; toolCalls?: any[]; contentParts?: any[]; }): { success: boolean; }; /** 供远程 OpenBot 代理调用:一次性返回助手回复 */ proxyChat(body: { sessionId: string; message: string; agentId?: string; }): Promise<{ success: boolean; text: string; }>; /** 供远程 OpenBot 代理调用:SSE 流式返回助手回复 */ proxyChatStream(body: { sessionId: string; message: string; agentId?: string; }, res: Response): Promise; }