mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 22:00:44 +00:00
test: drop generic function_calls extraction assertion
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user