Platform for stateful agents: AI with advanced memory that can learn and self-improve over time.
feat: remove persona/human from tool descriptions (#3250)
Kevin Linf3645545e3a9
diff --git a/letta/functions/function_sets/base.py b/letta/functions/function_sets/base.pyindex 2748f72cc..948c9a11f 100644--- a/letta/functions/function_sets/base.py+++ b/letta/functions/function_sets/base.py@@ -135,7 +135,7 @@ def core_memory_append(agent_state: "AgentState", label: str, content: str) -> OAppend to the contents of core memory.Args:- label (str): Section of the memory to be edited (persona or human).+ label (str): Section of the memory to be edited.content (str): Content to write to the memory. All unicode (including emojis) are supported.Returns:@@ -152,7 +152,7 @@ def core_memory_replace(agent_state: "AgentState", label: str, old_content: str,Replace the contents of core memory. To delete memories, use an empty string for new_content.Args:- label (str): Section of the memory to be edited (persona or human).+ label (str): Section of the memory to be edited.old_content (str): String to replace. Must be an exact match.new_content (str): Content to write to the memory. All unicode (including emojis) are supported.diff --git a/letta/schemas/memory.py b/letta/schemas/memory.pyindex 976583932..eac33ae71 100644--- a/letta/schemas/memory.py+++ b/letta/schemas/memory.py@@ -210,7 +210,7 @@ class BasicBlockMemory(Memory):Append to the contents of core memory.Args:- label (str): Section of the memory to be edited (persona or human).+ label (str): Section of the memory to be edited.content (str): Content to write to the memory. All unicode (including emojis) are supported.Returns:@@ -226,7 +226,7 @@ class BasicBlockMemory(Memory):Replace the contents of core memory. To delete memories, use an empty string for new_content.Args:- label (str): Section of the memory to be edited (persona or human).+ label (str): Section of the memory to be edited.old_content (str): String to replace. Must be an exact match.new_content (str): Content to write to the memory. All unicode (including emojis) are supported.diff --git a/letta/services/tool_executor/core_tool_executor.py b/letta/services/tool_executor/core_tool_executor.pyindex 11c487d00..8883890f1 100644--- a/letta/services/tool_executor/core_tool_executor.py+++ b/letta/services/tool_executor/core_tool_executor.py@@ -188,7 +188,7 @@ class LettaCoreToolExecutor(ToolExecutor):Append to the contents of core memory.Args:- label (str): Section of the memory to be edited (persona or human).+ label (str): Section of the memory to be edited.content (str): Content to write to the memory. All unicode (including emojis) are supported.Returns:@@ -214,7 +214,7 @@ class LettaCoreToolExecutor(ToolExecutor):Replace the contents of core memory. To delete memories, use an empty string for new_content.Args:- label (str): Section of the memory to be edited (persona or human).+ label (str): Section of the memory to be edited.old_content (str): String to replace. Must be an exact match.new_content (str): Content to write to the memory. All unicode (including emojis) are supported.diff --git a/test_agent_serialization.json b/test_agent_serialization.jsonindex 6efaab994..818d9e7e9 100644--- a/test_agent_serialization.json+++ b/test_agent_serialization.json@@ -306,7 +306,7 @@"properties": {"label": {"type": "string",- "description": "Section of the memory to be edited (persona or human)."+ "description": "Section of the memory to be edited."},"content": {"type": "string",@@ -343,7 +343,7 @@"properties": {"label": {"type": "string",- "description": "Section of the memory to be edited (persona or human)."+ "description": "Section of the memory to be edited."},"old_content": {"type": "string",