temp
This commit is contained in:
27
dist/orchestrator.d.ts
vendored
Normal file
27
dist/orchestrator.d.ts
vendored
Normal file
@@ -0,0 +1,27 @@
|
||||
import { LLMMessage } from './llm';
|
||||
import { ToolContext, MemoryUpdate } from './tools';
|
||||
export declare function listSessions(): {
|
||||
id: string;
|
||||
messages: number;
|
||||
createdAt: string;
|
||||
lastActiveAt: string;
|
||||
}[];
|
||||
export declare function clearSession(sessionId: string): void;
|
||||
export interface ChatResult {
|
||||
reply: string;
|
||||
reasoning: string | null;
|
||||
sessionId: string;
|
||||
turns: number;
|
||||
toolCalls: string[];
|
||||
model: string;
|
||||
/** Updated conversation history — caller should persist this */
|
||||
history: LLMMessage[];
|
||||
/** Knowledge items the AI chose to save this turn */
|
||||
memoryUpdates: MemoryUpdate[];
|
||||
}
|
||||
export declare function orchestratorChat(sessionId: string, userMessage: string, ctx: ToolContext, opts?: {
|
||||
/** Pre-load history from DB — replaces in-memory session history */
|
||||
preloadedHistory?: LLMMessage[];
|
||||
/** Knowledge items to inject as context at start of conversation */
|
||||
knowledgeContext?: string;
|
||||
}): Promise<ChatResult>;
|
||||
Reference in New Issue
Block a user