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.

fix templates path

Ahmed Essamc532a0a6adff
diff --git a/packages/app/src/backend/routes/router.utils/templates.utils.ts b/packages/app/src/backend/routes/router.utils/templates.utils.ts
index 35ef2435..c3cb89ae 100644
--- a/packages/app/src/backend/routes/router.utils/templates.utils.ts
+++ b/packages/app/src/backend/routes/router.utils/templates.utils.ts
@@ -11,7 +11,7 @@ import { isSmythStaff } from '../../utils';
const smythFS = new SmythFS();
export async function readAgentTemplates(req) {
- const templatesPath = path.join(config.env.LOCAL_STORAGE_PATH, 'templates/agents');
+ const templatesPath = path.join(process.env.DATA_PATH, 'templates/agents');
try {
//list .smyth files from templates/agents directory and return an object with file names and contents
const templates = {};