From 06b53632d12d52b33578eba3cf846e9350db0c96 Mon Sep 17 00:00:00 2001 From: Corey Pyle Date: Tue, 17 Jun 2025 13:32:41 -0400 Subject: [PATCH] Remove content from tool result. --- core/src/actions/prompt_thread.test.ts | 1 - core/src/actions/prompt_thread.ts | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/core/src/actions/prompt_thread.test.ts b/core/src/actions/prompt_thread.test.ts index d95e94b..fb8f059 100644 --- a/core/src/actions/prompt_thread.test.ts +++ b/core/src/actions/prompt_thread.test.ts @@ -276,7 +276,6 @@ describe("PromptThread", () => { expect(thread.errors.length).toBe(0); const response = content.at(-1)?.response ?? ""; - expect(response).toContain("USED TOOL add WITH ARGS 40 7"); expect(response).toContain("TOOL RETURNED 47"); }); }); diff --git a/core/src/actions/prompt_thread.ts b/core/src/actions/prompt_thread.ts index ed4a972..9a365b3 100644 --- a/core/src/actions/prompt_thread.ts +++ b/core/src/actions/prompt_thread.ts @@ -300,7 +300,7 @@ export function generateOne( c.meta.messages.push({ role: "user", - content: `USED TOOL ${toolUse.name} WITH ARGS ${toolUse.partial}`, + content: "", toolUse: { name: toolUse.name, input: toolUse.input,