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.

Refactor AI Chat Index for Improved Import Consistency and Clarity

Salman-Ahamed741b9687b7de
diff --git a/packages/app/src/react/features/ai-chat/index.ts b/packages/app/src/react/features/ai-chat/index.ts
index ffd4a8e1..c65ae95f 100644
--- a/packages/app/src/react/features/ai-chat/index.ts
+++ b/packages/app/src/react/features/ai-chat/index.ts
@@ -4,26 +4,10 @@
*/
// === Type Definitions ===
-export type {
- IChatAPIConfig,
- IChatActions,
- IChatError,
- IChatFileAttachment,
- IChatMessage,
- IChatState,
- IChatStreamCallbacks,
- IChatStreamChunk,
- IChatStreamConfig,
- IFileUploadMetadata,
- IThinkingManagerState,
- IUseChatReturn,
- TChatErrorType,
- TChatMessageType,
- TThinkingType,
-} from './types/chat.types';
+export * from './types/chat.types';
// === API Client ===
-export { ChatAPIClient, chatAPI, createChatClient } from './clients/chat-api.client';
+export { chatAPI, ChatAPIClient, createChatClient } from './clients/chat-api.client';
// === React Hooks ===
export {
@@ -36,13 +20,13 @@ export { useChatStream } from './hooks/use-chat-stream';
// === Utilities ===
export {
- ThinkingMessageManager,
createThinkingManager,
extractFunctionName,
formatFunctionName,
formatStatusMessage,
processStreamChunk,
splitJSONStream,
+ ThinkingMessageManager,
} from './utils/stream.utils';
// === Pages/Components ===