Skip to content

armgit / fara

Public Imported from GitHub
0

Fara1.5 – A family of frontier computer use agent models

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

Wassim Cheghamca1d3868f4a5
diff --git a/src/fara/fara_agent.py b/src/fara/fara_agent.py
index 0f06780..09d52b5 100644
--- a/src/fara/fara_agent.py
+++ b/src/fara/fara_agent.py
@@ -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,