Skip to content

Your lightweight open-source personal agent.

fix(agent): separate reasoning and tool hints to respect channel config

Sergio Sánchez Vallés33f59d8a37a9
diff --git a/nanobot/agent/loop.py b/nanobot/agent/loop.py
index fc1fd751c..2f6a2bc91 100644
--- a/nanobot/agent/loop.py
+++ b/nanobot/agent/loop.py
@@ -213,6 +213,7 @@ class AgentLoop:
tool_hint_str = self._tool_hint(response.tool_calls)
if combined_thoughts:
+ await on_progress(combined_thoughts)
await on_progress(f"{combined_thoughts}\n\n{tool_hint_str}", tool_hint=True)
else:
await on_progress(tool_hint_str, tool_hint=True)