Skip to content

SmythOS Studio: Open-Source Visual AI Agent Builder and deployable runtime stack from SmythOS. Start with an intuitive drag-and-drop workspace, extend with custom code, and deploy your agents anywhere — local, cloud, or edge — with full governance and control.

Remove chat.types.ts for Streamlined Type Management

Salman-Ahamed20776d2882fb
diff --git a/packages/app/src/react/shared/types/chat.types.ts b/packages/app/src/react/shared/types/chat.types.ts
deleted file mode 100644
index 8b14b5e8..00000000
--- a/packages/app/src/react/shared/types/chat.types.ts
+++ /dev/null
@@ -1,29 +0,0 @@
-export interface FileMetadata {
- key?: string;
- publicUrl?: string;
- fileType?: string;
- previewUrl?: string;
- isUploading?: boolean;
-}
-
-export interface FileWithMetadata {
- file: File;
- metadata: FileMetadata;
- id: string;
-}
-
-export interface IChatMessage {
- me: boolean;
- message: string;
- type?: 'user' | 'system' | 'thinking';
- avatar?: string;
- isReplying?: boolean;
- isError?: boolean;
- isFirstMessage?: boolean;
- files?: FileWithMetadata[];
- hideMessage?: boolean;
- thinkingMessage?: string; // Inline thinking message to show with system messages
- isLast?: boolean; // Whether this is the last message in the chat
- isRetrying?: boolean; // Whether this message is being retried
- onRetryClick?: () => void; // Function to call when retry is clicked
-}