Skip to content

The agent that grows with you

fix(memory): say content is required for add and patch

emozillaa7e50a1db95e
diff --git a/tests/fixtures/prompt_surface/surfaces.json b/tests/fixtures/prompt_surface/surfaces.json
index e6d32b4472a..3b5246a34b6 100644
--- a/tests/fixtures/prompt_surface/surfaces.json
+++ b/tests/fixtures/prompt_surface/surfaces.json
@@ -5,7 +5,7 @@
"stable": 1935,
"volatile": 1813
},
- "tool_tokens": 13262,
+ "tool_tokens": 13277,
"tools": [
"browser_back",
"browser_cdp",
@@ -48,7 +48,7 @@
"stable": 1445,
"volatile": 1813
},
- "tool_tokens": 13262,
+ "tool_tokens": 13277,
"tools": [
"browser_back",
"browser_cdp",
@@ -91,7 +91,7 @@
"stable": 1866,
"volatile": 1811
},
- "tool_tokens": 13262,
+ "tool_tokens": 13277,
"tools": [
"browser_back",
"browser_cdp",
@@ -134,7 +134,7 @@
"stable": 2640,
"volatile": 1809
},
- "tool_tokens": 13418,
+ "tool_tokens": 13433,
"tools": [
"browser_back",
"browser_cdp",
@@ -177,7 +177,7 @@
"stable": 1445,
"volatile": 1813
},
- "tool_tokens": 13262,
+ "tool_tokens": 13277,
"tools": [
"browser_back",
"browser_cdp",
@@ -220,7 +220,7 @@
"stable": 1317,
"volatile": 1813
},
- "tool_tokens": 13262,
+ "tool_tokens": 13277,
"tools": [
"browser_back",
"browser_cdp",
@@ -263,7 +263,7 @@
"stable": 1579,
"volatile": 1814
},
- "tool_tokens": 13899,
+ "tool_tokens": 13914,
"tools": [
"browser_back",
"browser_cdp",
@@ -307,7 +307,7 @@
"stable": 1349,
"volatile": 1814
},
- "tool_tokens": 13262,
+ "tool_tokens": 13277,
"tools": [
"browser_back",
"browser_cdp",
@@ -350,7 +350,7 @@
"stable": 1382,
"volatile": 1814
},
- "tool_tokens": 13262,
+ "tool_tokens": 13277,
"tools": [
"browser_back",
"browser_cdp",
diff --git a/tests/fixtures/prompt_surface/tools/memory.json b/tests/fixtures/prompt_surface/tools/memory.json
index fe9a2c6a1b1..52a87a3007e 100644
--- a/tests/fixtures/prompt_surface/tools/memory.json
+++ b/tests/fixtures/prompt_surface/tools/memory.json
@@ -13,7 +13,7 @@
"type": "string"
},
"content": {
- "description": "For 'add', the new entry. For 'patch', the text that replaces old_text; the rest of the entry is kept. Alias: 'new_text'.",
+ "description": "Required for 'add' and 'patch'. For 'add', the new entry. For 'patch', the text that replaces old_text; the rest of the entry is kept. Alias: 'new_text'.",
"type": "string"
},
"new_text": {
@@ -38,7 +38,7 @@
"type": "string"
},
"content": {
- "description": "As 'content' above.",
+ "description": "Required for add and patch, as 'content' above.",
"type": "string"
},
"new_text": {
diff --git a/tools/memory_tool.py b/tools/memory_tool.py
index 1bbc7ed6867..a3e455def7b 100644
--- a/tools/memory_tool.py
+++ b/tools/memory_tool.py
@@ -409,7 +409,7 @@ MEMORY_SCHEMA = {
},
"content": {
"type": "string",
- "description": "For 'add', the new entry. For 'patch', the text that replaces old_text; the rest of the entry is kept. Alias: 'new_text'."
+ "description": "Required for 'add' and 'patch'. For 'add', the new entry. For 'patch', the text that replaces old_text; the rest of the entry is kept. Alias: 'new_text'."
},
"old_text": {
"type": "string",
@@ -430,7 +430,7 @@ MEMORY_SCHEMA = {
"type": "object",
"properties": {
"action": {"type": "string", "enum": ["add", "patch", "remove"]},
- "content": {"type": "string", "description": "As 'content' above."},
+ "content": {"type": "string", "description": "Required for add and patch, as 'content' above."},
"new_text": {"type": "string", "description": "Alias for 'content' in a batch op."},
"old_text": {"type": "string", "description": "As 'old_text' above."},
},