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.
JavaScript a2aagentic-aiai-agentsdevtoolsmcp-clientn8n-alternativeno-codeopen-sourceorchestrationsmythosvisual-builder
Update createFileFromText to Use IMessageFile for Improved Type Consistency
Salman-Ahamed0b2b00209044
diff --git a/packages/app/src/react/features/ai-chat/utils/index.ts b/packages/app/src/react/features/ai-chat/utils/index.tsindex 01eb1bb1..53d8bfd9 100644--- a/packages/app/src/react/features/ai-chat/utils/index.ts+++ b/packages/app/src/react/features/ai-chat/utils/index.ts@@ -1,6 +1,6 @@/* eslint-disable no-unused-vars, @typescript-eslint/no-unused-vars, @typescript-eslint/no-explicit-any */+import { IMessageFile } from '@react/features/ai-chat';import config from '@src/builder-ui/config';-import { FileWithMetadata } from '@src/react/shared/types/chat.types';type GenerateResponseInput = {agentId: string;@@ -598,7 +598,7 @@ export const chatUtils = {},};-export const createFileFromText = (content: string): FileWithMetadata => {+export const createFileFromText = (content: string): IMessageFile => {const timestamp = new Date().toISOString().replace(/[:.]/g, '-');const name = `text-${timestamp}.txt`;const blob = new Blob([content], { type: 'text/plain' });