test: drop generic function_calls extraction assertion

This commit is contained in:
Marcus Castro
2026-04-28 23:24:23 -03:00
parent b142f1d589
commit 970a4a19c6

View File

@@ -468,21 +468,6 @@ File contents here`,
expect(extractAssistantText(msg)).toBe("Prefix\n\nSuffix");
});
it("strips XML-style function_calls blocks from assistant text", () => {
const msg = makeAssistantMessage({
role: "assistant",
content: [
{
type: "text",
text: 'Before\n<function_calls><invoke name="web_search"><parameter name="query">x</parameter></invoke></function_calls>\nAfter',
},
],
timestamp: Date.now(),
});
expect(extractAssistantText(msg)).toBe("Before\n\nAfter");
});
it("strips dangling <tool_call> XML content to end-of-string", () => {
const msg = makeAssistantMessage({
role: "assistant",