Skip to content

armgit / letta

Public Imported from GitHub
0

Platform for stateful agents: AI with advanced memory that can learn and self-improve over time.

chore: Remove `deprecated_tool` mentions everywhere (#598)

Matthew Zhoue2c4d15037f0
diff --git a/alembic/versions/d14ae606614c_move_organizations_users_tools_to_orm.py b/alembic/versions/d14ae606614c_move_organizations_users_tools_to_orm.py
index e8733313f..83c5f2df4 100644
--- a/alembic/versions/d14ae606614c_move_organizations_users_tools_to_orm.py
+++ b/alembic/versions/d14ae606614c_move_organizations_users_tools_to_orm.py
@@ -21,10 +21,6 @@ branch_labels: Union[str, Sequence[str], None] = None
depends_on: Union[str, Sequence[str], None] = None
-def deprecated_tool():
- return "this is a deprecated tool, please remove it from your tools list"
-
-
def upgrade() -> None:
# Delete all tools
op.execute("DELETE FROM tools")
diff --git a/scripts/migrate_tools.py b/scripts/migrate_tools.py
index 53578c690..d3631f6c2 100644
--- a/scripts/migrate_tools.py
+++ b/scripts/migrate_tools.py
@@ -4,11 +4,6 @@ from letta.schemas.user import User
from letta.services.organization_manager import OrganizationManager
from letta.services.tool_manager import ToolManager
-
-def deprecated_tool():
- return "this is a deprecated tool, please remove it from your tools list"
-
-
orgs = OrganizationManager().list_organizations(cursor=None, limit=5000)
for org in tqdm(orgs):
if org.name != "default":