Platform for stateful agents: AI with advanced memory that can learn and self-improve over time.
fix: Remove terminal tool rules for 2 of the multi agent tools (#888)
Matthew Zhoude6193746baf
diff --git a/letta/orm/agent.py b/letta/orm/agent.pyindex 39db57d23..a4d08f719 100644--- a/letta/orm/agent.py+++ b/letta/orm/agent.py@@ -4,7 +4,6 @@ from typing import TYPE_CHECKING, List, Optionalfrom sqlalchemy import JSON, Index, Stringfrom sqlalchemy.orm import Mapped, mapped_column, relationship-from letta.constants import MULTI_AGENT_TOOLSfrom letta.orm.block import Blockfrom letta.orm.custom_columns import EmbeddingConfigColumn, LLMConfigColumn, ToolRulesColumnfrom letta.orm.message import Message@@ -121,12 +120,7 @@ class Agent(SqlalchemyBase, OrganizationMixin):# add default rule for having send_message be a terminal tooltool_rules = self.tool_rulesif not tool_rules:- tool_rules = [- TerminalToolRule(tool_name="send_message"),- ]-- for tool_name in MULTI_AGENT_TOOLS:- tool_rules.append(TerminalToolRule(tool_name=tool_name))+ tool_rules = [TerminalToolRule(tool_name="send_message"), TerminalToolRule(tool_name="send_message_to_agent_async")]state = {"id": self.id,