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.

feat: add line number warning to `memory_insert` (#3829)

Kevin Lin18b036fa0725
diff --git a/letta/functions/function_sets/base.py b/letta/functions/function_sets/base.py
index 36ebec986..ee8df51b1 100644
--- a/letta/functions/function_sets/base.py
+++ b/letta/functions/function_sets/base.py
@@ -264,7 +264,7 @@ def memory_insert(agent_state: "AgentState", label: str, new_str: str, insert_li
Args:
label (str): Section of the memory to be edited, identified by its label.
- new_str (str): The text to insert.
+ new_str (str): The text to insert. Do not include line number prefixes.
insert_line (int): The line number after which to insert the text (0 for beginning of file). Defaults to -1 (end of the file).
Returns: