Platform for stateful agents: AI with advanced memory that can learn and self-improve over time.
fix: calling link_tools doesnt update agent.tools (#1848)
Vivek Verma1fad0f8df968
diff --git a/letta/agent.py b/letta/agent.pyindex ce32eba35..5589fec06 100644--- a/letta/agent.py+++ b/letta/agent.py@@ -339,6 +339,9 @@ class Agent(BaseAgent):for tool_name in self.agent_state.tools:assert tool_name in [tool.name for tool in tools], f"Tool name {tool_name} not included in agent tool list"+ # Update tools+ self.tools = tools+# Store the functions schemas (this is passed as an argument to ChatCompletion)self.functions = []self.functions_python = {}