Skip to content

Commit cc4008d

Browse files
author
Zoo (VP)
committed
fix: correct PushToolResult type in integration test
1 parent 321da70 commit cc4008d

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/core/assistant-message/__tests__/error-interceptor-guided-format.integration.spec.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import { getTaskErrorState } from "../../tools/error-interception"
88
import { NativeToolCallParser } from "../NativeToolCallParser"
99

1010
import type { Task } from "../../task/Task"
11+
import type { ToolResponse } from "../../../shared/tools"
1112

1213
// ---------------------------------------------------------------------------
1314
// Integration test: REAL ToolErrorInterceptor + REAL NativeToolCallParser
@@ -316,8 +317,8 @@ describe("Error Interceptor Guided Format Integration — INVALID_JSON_ARGUMENTS
316317
task as unknown as object,
317318
{
318319
handleError: vi.fn(),
319-
pushToolResult: (content: string) => {
320-
capturedResults.push(content)
320+
pushToolResult: (content: ToolResponse) => {
321+
capturedResults.push(typeof content === "string" ? content : JSON.stringify(content))
321322
},
322323
},
323324
{

0 commit comments

Comments
 (0)