From 5cccb066f10696e3e2763eaa0565dbce92271ed3 Mon Sep 17 00:00:00 2001 From: Jiayuan Zhang Date: Wed, 11 Feb 2026 18:56:31 +0800 Subject: [PATCH] refactor(agent): keep finance tool decisions internal --- packages/core/src/agent/system-prompt/sections.test.ts | 4 ++-- packages/core/src/agent/system-prompt/sections.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/core/src/agent/system-prompt/sections.test.ts b/packages/core/src/agent/system-prompt/sections.test.ts index 55daae5c..00549efe 100644 --- a/packages/core/src/agent/system-prompt/sections.test.ts +++ b/packages/core/src/agent/system-prompt/sections.test.ts @@ -186,8 +186,8 @@ describe("buildConditionalToolSections", () => { const text = result.join("\n"); expect(text).toContain("## Data Access"); expect(text).toContain("dynamic evidence decision"); - expect(text).toContain("Tool Decision"); - expect(text).toContain("plan (`data_only` | `hybrid` | `web_first`)"); + expect(text).toContain("Make this evidence decision internally"); + expect(text).toContain("user-facing research rationale"); }); it("returns empty when no conditional tools match", () => { diff --git a/packages/core/src/agent/system-prompt/sections.ts b/packages/core/src/agent/system-prompt/sections.ts index 2fe2cf8b..52809aad 100644 --- a/packages/core/src/agent/system-prompt/sections.ts +++ b/packages/core/src/agent/system-prompt/sections.ts @@ -281,7 +281,7 @@ export function buildConditionalToolSections( : "Use tool outputs as evidence, and clearly state assumptions when data is incomplete.", ...(hasWebTools ? [ - "Before final conclusions, include a short `Tool Decision` summary with: plan (`data_only` | `hybrid` | `web_first`), reason, and missing evidence impact.", + "Make this evidence decision internally. In final answers, present concise user-facing research rationale instead of technical decision labels unless the user asks for methodology details.", ] : []), "",