fix(fara-cli): refactor logging for action execution in FaraAgent (#25)

This commit is contained in:
Wassim Chegham
2025-11-26 16:39:45 +01:00
committed by GitHub
parent 222c2a38e7
commit ca1d3868f4

View File

@@ -378,7 +378,8 @@ class FaraAgent:
all_actions.append(raw_response)
thoughts, action_dict = self._parse_thoughts_and_action(raw_response)
action_args = action_dict.get("arguments", {})
self.logger.info(f"\nThought #{i+1}: {thoughts}\nAction #{i+1}: executing tool '{action_args["action"]}' with arguments {json.dumps(action_args)}")
action = action_args["action"]
self.logger.info(f"\nThought #{i+1}: {thoughts}\nAction #{i+1}: executing tool '{action}' with arguments {json.dumps(action_args)}")
(
is_stop_action,