initial commit
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
export type MessageType = 'system' | 'agent' | 'user';
|
||||
|
||||
export interface ChatMessage {
|
||||
type: MessageType;
|
||||
message: string;
|
||||
}
|
||||
|
||||
export interface GenerateRequestBody {
|
||||
topicId: string;
|
||||
messages: ChatMessage[];
|
||||
}
|
||||
|
||||
export interface GenerationStreamEvent {
|
||||
type: 'token' | 'complete' | 'error';
|
||||
data: string | object | null;
|
||||
}
|
||||
|
||||
export interface GenerationStatus {
|
||||
generationId: string;
|
||||
status: 'pending' | 'active' | 'completed' | 'error';
|
||||
content?: string;
|
||||
topicId?: string;
|
||||
model?: string;
|
||||
tokensGenerated?: number;
|
||||
tokensUsedThinking?: number;
|
||||
}
|
||||
Reference in New Issue
Block a user