You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// This is a unit test for the specific condition we modified
5
+
it('should only consider a response empty if it has no text AND no tool calls',()=>{
6
+
// Import the file content to test the condition directly
7
+
constfileContent=`
8
+
if (!text.length && toolCalls.length === 0) {
9
+
// Only consider it empty if there's no text AND no tool calls
10
+
logger.verbose('Received truly empty response from agent (no text and no tool calls), sending reminder');
11
+
messages.push({
12
+
role: 'user',
13
+
content: [
14
+
{
15
+
type: 'text',
16
+
text: 'I notice you sent an empty response. If you are done with your tasks, please call the sequenceComplete tool with your results. If you are waiting for other tools to complete, you can use the sleep tool to wait before checking again.',
0 commit comments