Add parent tool rule (#1648)

This commit is contained in:
cthomas
2025-04-09 15:22:15 -07:00
committed by GitHub
parent 4cb7f576d9
commit 77ea56106b
8 changed files with 47 additions and 11 deletions

View File

@@ -226,7 +226,7 @@ def core_memory_insert(agent_state: "AgentState", target_block_label: str, new_m
if line_number is None:
line_number = len(current_value_list)
if replace:
current_value_list[line_number] = new_memory
current_value_list[line_number - 1] = new_memory
else:
current_value_list.insert(line_number, new_memory)
new_value = "\n".join(current_value_list)