Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions packages/aikit/test/transform.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -177,18 +177,19 @@ describe("Message.transformMessages", () => {
});

it("does not send another model's readable thinking as text", () => {
const toolCall = makeCompletedToolCall("call-1");
const assistant = makeAssistantMessage(otherModel, {
stopReason: "toolUse",
parts: [
{ type: "thinking", thinking: "Candidates: proxy, IPv6, TLS.", thinkingSignature: "reasoning_content" },
{ type: "text", text: "Let me check the TLS versions." },
makeCompletedToolCall("call-1"),
toolCall,
],
});

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

Expand Down
Loading