Skip to content

Commit 2f26882

Browse files
committed
modify default local path
1 parent 0e26f58 commit 2f26882

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

veadk/memory/short_term_memory.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,6 @@
3232

3333
logger = get_logger(__name__)
3434

35-
DEFAULT_LOCAL_DATABASE_PATH = "/tmp/veadk_local_database.db"
36-
3735

3836
def wrap_get_session_with_callbacks(obj, callback_fn: Callable):
3937
get_session_fn = getattr(obj, "get_session")
@@ -57,8 +55,8 @@ class ShortTermMemory(BaseModel):
5755
db_url: str = ""
5856
"""Database connection URL, e.g. `sqlite:///./test.db`. Once set, it will override the `backend` parameter."""
5957

60-
local_database_path: str = DEFAULT_LOCAL_DATABASE_PATH
61-
"""Local database path, only used when `backend` is `sqlite`."""
58+
local_database_path: str = "/tmp/veadk_local_database.db"
59+
"""Local database path, only used when `backend` is `sqlite`. Default to `/tmp/veadk_local_database.db`."""
6260

6361
after_load_memory_callback: Callable | None = None
6462
"""A callback to be called after loading memory from the backend. The callback function should accept `Session` as an input."""

0 commit comments

Comments
 (0)