From d08d561aa753e41d3c9b8804dc27eb923a037b9f Mon Sep 17 00:00:00 2001 From: Ali Mohammad Date: Thu, 1 Oct 2026 09:08:00 +0300 Subject: [PATCH] test: align tool-call contract fixtures with the structured tool-error shape (LOU-U12) Co-Authored-By: Claude Fable 5.1 --- src/providers/toolCallTurns.contract.test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/providers/toolCallTurns.contract.test.ts b/src/providers/toolCallTurns.contract.test.ts index ecb5ec8b2..570137204 100644 --- a/src/providers/toolCallTurns.contract.test.ts +++ b/src/providers/toolCallTurns.contract.test.ts @@ -74,7 +74,7 @@ const history: Message[] = [ }, { role: 'tool', - content: '{"error":"Rome station offline"}', + content: '{"error":"Error","toolName":"get_weather","message":"Rome station offline"}', name: 'get_weather', toolCallId: 'call_B', toolName: 'get_weather', @@ -107,7 +107,7 @@ const expectedPayload: CoreMessage[] = [ type: 'tool-result', toolCallId: 'call_B', toolName: 'get_weather', - result: { error: 'Rome station offline' }, + result: { error: 'Error', toolName: 'get_weather', message: 'Rome station offline' }, isError: true, }, ],