@@ -40,6 +40,12 @@ test('typed questions barge in from SPEAKING', () => {
|
||||
test('spoken replies use harness text and strip HUD sidecars', () => {
|
||||
assert.equal(spokenReply({ ok: true, text: 'Hello there.', reason: 'stop' }), 'Hello there.');
|
||||
assert.equal(spokenReply({ text: 'Spoken. <jarvis_hud>{"title":"x","chips":[]}</jarvis_hud>' }), 'Spoken.');
|
||||
assert.equal(
|
||||
spokenReply({
|
||||
text: 'I will look that up. <tool_call><function=web_search><parameter=query>weather</parameter></function></tool_call>',
|
||||
}),
|
||||
'I will look that up.',
|
||||
);
|
||||
assert.equal(spokenReply({}), '');
|
||||
assert.equal(spokenReply('[object Object]'), '');
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user