Skip to content

Self-evolving Context Database for AI Agents. Unify Agent Memory, Knowledge RAG and Skills.

Align context-engine assemble test with toolCall output (#1641)

AutoCoder44efb0667eb8
diff --git a/examples/openclaw-plugin/tests/context-engine-assemble.test.ts b/examples/openclaw-plugin/tests/context-engine-assemble.test.ts
index 66248ffee..1d007bb2c 100644
--- a/examples/openclaw-plugin/tests/context-engine-assemble.test.ts
+++ b/examples/openclaw-plugin/tests/context-engine-assemble.test.ts
@@ -134,10 +134,10 @@ describe("context-engine assemble()", () => {
{ type: "text", text: "I checked the latest context." },
{ type: "text", text: "User prefers concise answers." },
{
- type: "toolUse",
+ type: "toolCall",
id: "tool_123",
name: "read_file",
- input: { path: "src/app.ts" },
+ arguments: { path: "src/app.ts" },
},
],
},
@@ -190,10 +190,10 @@ describe("context-engine assemble()", () => {
role: "assistant",
content: [
{
- type: "toolUse",
+ type: "toolCall",
id: "tool_running",
name: "bash",
- input: { command: "npm test" },
+ arguments: { command: "npm test" },
},
],
});