



















@@ -1195,7 +1195,9 @@ describe("qa mock openai server", () => {
11951195type: "input_text",
11961196text: [
11971197"You are a memory search agent.",
1198-"Use only memory_search and memory_get.",
1198+"Use only the available memory tools.",
1199+"Prefer memory_recall when available.",
1200+"If memory_recall is unavailable, use memory_search and memory_get.",
11991201"",
12001202"Conversation context:",
12011203"Latest user message:",
@@ -1208,9 +1210,9 @@ describe("qa mock openai server", () => {
12081210}),
12091211});
12101212expect(activeMemorySearch.status).toBe(200);
1211-expect(await activeMemorySearch.text()).toContain('"name":"memory_search"');
1213+expect(await activeMemorySearch.text()).toContain('"name":"memory_recall"');
121212141213-const activeMemoryGet = await fetch(`${server.baseUrl}/v1/responses`, {
1215+const activeMemoryStreamSummary = await fetch(`${server.baseUrl}/v1/responses`, {
12141216method: "POST",
12151217headers: {
12161218"content-type": "application/json",
@@ -1225,7 +1227,9 @@ describe("qa mock openai server", () => {
12251227type: "input_text",
12261228text: [
12271229"You are a memory search agent.",
1228-"Use only memory_search and memory_get.",
1230+"Use only the available memory tools.",
1231+"Prefer memory_recall when available.",
1232+"If memory_recall is unavailable, use memory_search and memory_get.",
12291233"",
12301234"Conversation context:",
12311235"Latest user message:",
@@ -1237,20 +1241,14 @@ describe("qa mock openai server", () => {
12371241{
12381242type: "function_call_output",
12391243output: JSON.stringify({
1240-results: [
1241-{
1242-path: "MEMORY.md",
1243-startLine: 1,
1244-endLine: 1,
1245-},
1246-],
1244+text: "Stable QA movie night snack preference: lemon pepper wings with blue cheese.",
12471245}),
12481246},
12491247],
12501248}),
12511249});
1252-expect(activeMemoryGet.status).toBe(200);
1253-expect(await activeMemoryGet.text()).toContain('"name":"memory_get"');
1250+expect(activeMemoryStreamSummary.status).toBe(200);
1251+expect(await activeMemoryStreamSummary.text()).toContain("lemon pepper wings with blue cheese");
1254125212551253const activeMemorySummary = await fetch(`${server.baseUrl}/v1/responses`, {
12561254method: "POST",
@@ -1267,7 +1265,9 @@ describe("qa mock openai server", () => {
12671265type: "input_text",
12681266text: [
12691267"You are a memory search agent.",
1270-"Use only memory_search and memory_get.",
1268+"Use only the available memory tools.",
1269+"Prefer memory_recall when available.",
1270+"If memory_recall is unavailable, use memory_search and memory_get.",
12711271"",
12721272"Conversation context:",
12731273"Latest user message:",
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。