Platform for stateful agents: AI with advanced memory that can learn and self-improve over time.
Add `memgpt version` command and package version (#336)
Sarah Wooderscb12f7043beb
diff --git a/memgpt/__init__.py b/memgpt/__init__.pyindex e69de29bb..100c30bd6 100644--- a/memgpt/__init__.py+++ b/memgpt/__init__.py@@ -0,0 +1 @@+__version__ = "0.1.18-alpha.1"diff --git a/memgpt/cli/cli.py b/memgpt/cli/cli.pyindex ac115fdfe..09f5d26e6 100644--- a/memgpt/cli/cli.py+++ b/memgpt/cli/cli.py@@ -185,3 +185,10 @@ def attach(f"Attached data source {data_source} to agent {agent}, consisting of {len(passages)}. Agent now has {total_agent_passages} embeddings in archival memory.",fg=typer.colors.GREEN,)+++def version():+ import memgpt++ print(memgpt.__version__)+ return memgpt.__version__diff --git a/memgpt/main.py b/memgpt/main.pyindex e93ed085e..b1415bd17 100644--- a/memgpt/main.py+++ b/memgpt/main.py@@ -33,7 +33,7 @@ from memgpt.persistence_manager import (InMemoryStateManagerWithPreloadedArchivalMemory,InMemoryStateManagerWithFaiss,)-from memgpt.cli.cli import run, attach+from memgpt.cli.cli import run, attach, versionfrom memgpt.cli.cli_config import configure, list, addfrom memgpt.cli.cli_load import app as load_appfrom memgpt.config import Config, MemGPTConfig, AgentConfig@@ -49,6 +49,7 @@ import asyncioapp = typer.Typer()app.command(name="run")(run)+app.command(name="version")(version)app.command(name="attach")(attach)app.command(name="configure")(configure)app.command(name="list")(list)