fix(audit): resolve lint global, compaction metrics, and nudge id
This commit is contained in:
@@ -201,9 +201,8 @@ describe('NativeAgent tool loop', () => {
|
||||
callCount++;
|
||||
// After nudge message, model should respond with text
|
||||
const lastMsg = req.messages[req.messages.length - 1];
|
||||
const hasNudge = typeof lastMsg?.content !== 'string' &&
|
||||
Array.isArray(lastMsg?.content) &&
|
||||
lastMsg.content.some((b: any) => b.content?.includes('do NOT call it again'));
|
||||
const hasNudge = typeof lastMsg?.content === 'string'
|
||||
&& lastMsg.content.includes('do NOT call it again');
|
||||
if (hasNudge) {
|
||||
return {
|
||||
content: 'Here is what I found from my searches.',
|
||||
|
||||
Reference in New Issue
Block a user