Skip to content

Commit 18efcaa

Browse files
sanchitrkclaude
andauthored
test(aikit): build the expected tool call once in the cross-model thinking case (#105)
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
1 parent 1a5d744 commit 18efcaa

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

‎packages/aikit/test/transform.test.ts‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,18 +177,19 @@ describe("Message.transformMessages", () => {
177177
});
178178

179179
it("does not send another model's readable thinking as text", () => {
180+
const toolCall = makeCompletedToolCall("call-1");
180181
const assistant = makeAssistantMessage(otherModel, {
181182
stopReason: "toolUse",
182183
parts: [
183184
{ type: "thinking", thinking: "Candidates: proxy, IPv6, TLS.", thinkingSignature: "reasoning_content" },
184185
{ type: "text", text: "Let me check the TLS versions." },
185-
makeCompletedToolCall("call-1"),
186+
toolCall,
186187
],
187188
});
188189

189190
expect(expectSingleAssistant(Message.transformMessages([assistant], sameModel)).parts).toEqual([
190191
{ type: "text", text: "Let me check the TLS versions." },
191-
makeCompletedToolCall("call-1"),
192+
toolCall,
192193
]);
193194
});
194195

0 commit comments

Comments
 (0)