20 lines
561 B
TypeScript
20 lines
561 B
TypeScript
import { ToolContext } from './tools';
|
|
export declare function listSessions(): {
|
|
id: string;
|
|
messages: number;
|
|
createdAt: string;
|
|
lastActiveAt: string;
|
|
}[];
|
|
export declare function clearSession(sessionId: string): void;
|
|
export interface ChatMessage {
|
|
role: 'user' | 'assistant';
|
|
content: string;
|
|
}
|
|
export interface ChatResult {
|
|
reply: string;
|
|
sessionId: string;
|
|
turns: number;
|
|
toolCalls: string[];
|
|
}
|
|
export declare function orchestratorChat(sessionId: string, userMessage: string, ctx: ToolContext): Promise<ChatResult>;
|