continue scaffolding and refine the basic foundation

This commit is contained in:
Zoe
2026-01-13 19:56:24 +00:00
parent 0877cc10bd
commit 8c28946703
37 changed files with 1431 additions and 509 deletions
+6 -3
View File
@@ -1,4 +1,5 @@
export type MessageType = 'system' | 'agent' | 'user';
export type GenerationStatus = 'pending' | 'active' | 'completed' | 'failed';
export interface ChatMessage {
type: MessageType;
@@ -8,19 +9,21 @@ export interface ChatMessage {
export interface GenerateRequestBody {
topicId: string;
messages: ChatMessage[];
regeneratesFrom?: string;
}
export interface GenerationStreamEvent {
type: 'token' | 'complete' | 'error';
type: 'start' | 'token' | 'complete' | 'error';
data: string | object | null;
}
export interface GenerationStatus {
export interface GenerationStatusResponse {
generationId: string;
status: 'pending' | 'active' | 'completed' | 'error';
status: GenerationStatus;
content?: string;
topicId?: string;
model?: string;
tokensGenerated?: number;
tokensUsedThinking?: number;
error?: string;
}