Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -786,18 +786,18 @@ Your goal: Provide the EXACT answer in the EXACT format requested.
|
|
| 786 |
# +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
| 787 |
|
| 788 |
|
| 789 |
-
|
| 790 |
-
|
| 791 |
-
|
| 792 |
-
|
| 793 |
-
|
| 794 |
-
|
| 795 |
-
|
| 796 |
-
|
| 797 |
-
|
| 798 |
-
|
| 799 |
-
|
| 800 |
-
|
| 801 |
|
| 802 |
# --- Tool Node ---
|
| 803 |
tool_node = ToolNode(self.tools)
|
|
|
|
| 786 |
# +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
| 787 |
|
| 788 |
|
| 789 |
+
# --- Logging ---
|
| 790 |
+
if ai_message.tool_calls:
|
| 791 |
+
for tc in ai_message.tool_calls:
|
| 792 |
+
print(f"🔧 Tool Call: {tc.get('name')}")
|
| 793 |
+
print(f" Args: {tc.get('args', {})}")
|
| 794 |
+
elif ai_message.content:
|
| 795 |
+
content_preview = ai_message.content[:300]
|
| 796 |
+
if len(ai_message.content) > 300:
|
| 797 |
+
content_preview += "..."
|
| 798 |
+
print(f"💭 Agent Reasoning:\n{content_preview}")
|
| 799 |
+
|
| 800 |
+
return {"messages": [ai_message], "turn": current_turn}
|
| 801 |
|
| 802 |
# --- Tool Node ---
|
| 803 |
tool_node = ToolNode(self.tools)
|