Compare commits

...

2 Commits

Author SHA1 Message Date
Engel Nyst
fac6af6889 fix stuck 2025-03-05 00:00:14 +01:00
Engel Nyst
1490e43aea tweak log 2025-03-05 00:00:01 +01:00
2 changed files with 2 additions and 3 deletions

View File

@@ -1,4 +1,3 @@
import json
import os
from collections import deque
@@ -74,7 +73,7 @@ class CodeActAgent(Agent):
codeact_enable_llm_editor=self.config.codeact_enable_llm_editor,
)
logger.debug(
f'TOOLS loaded for CodeActAgent: {json.dumps(self.tools, indent=2, ensure_ascii=False).replace("\\n", "\n")}'
f'TOOLS loaded for CodeActAgent: {', '.join([tool.get('function').get('name') for tool in self.tools])}'
)
self.prompt_manager = PromptManager(
microagent_dir=os.path.join(

View File

@@ -130,7 +130,7 @@ class StuckDetector:
# it takes 3 actions and 3 observations to detect a loop
# check if the last three actions are the same and result in errors
if len(last_actions) < 4 or len(last_observations) < 4:
if len(last_actions) < 3 or len(last_observations) < 3:
return False
# are the last three actions the "same"?