added chatbot and exportType folder with the types

This commit is contained in:
Ivan Rudik
2025-11-09 02:20:56 +00:00
parent 475b830b60
commit 36a54831ce
5 changed files with 33 additions and 10 deletions
+30
View File
@@ -0,0 +1,30 @@
export type MessageRole = "user" | "model";
export type MessagePart = {
text: string;
}
export interface Message{
role: MessageRole;
parts:MessagePart[];
}
export type ChatHistory = Message[];
export interface GenerateConfig{
temperature : number;
topP : number;
responseMimeType : string;
}
export interface ChatSetting{
temperature :number;
model: string;
sysTemInstructions: string;
}
export interface CardData {
id: number;
title: string;
tracks: string[];
summary: string;
}