The Memory Layer for AI Agents - Drop-in memory infrastructure for AI agents and apps. Context that persists. Built for production.
Python agentic-memoryagentic-memory-systemagentsaiai-agentschatgptgenaillmlong-term-memorymemorymemory-managementpythonragstate-management
[Bug fix] missing dir on first init for App (#934)
Sidharth Mohanty744ab5156f59
diff --git a/embedchain/apps/app.py b/embedchain/apps/app.pyindex a6129a3f5..63a44f370 100644--- a/embedchain/apps/app.py+++ b/embedchain/apps/app.py@@ -2,8 +2,8 @@ from typing import Optionalimport yaml-from embedchain.config import (AppConfig, BaseEmbedderConfig, BaseLlmConfig,- ChunkerConfig)+from embedchain.client import Client+from embedchain.config import AppConfig, BaseEmbedderConfig, BaseLlmConfig, ChunkerConfigfrom embedchain.config.vectordb.base import BaseVectorDbConfigfrom embedchain.embedchain import EmbedChainfrom embedchain.embedder.base import BaseEmbedder@@ -67,6 +67,9 @@ class App(EmbedChain)::type system_prompt: Optional[str], optional:raises TypeError: LLM, database or embedder or their config is not a valid class instance."""+ # Setup user directory if it doesn't exist already+ Client.setup_dir()+# Type check configsif config and not isinstance(config, AppConfig):raise TypeError(