mirror of
https://github.com/HKUDS/nanobot.git
synced 2026-04-02 09:22:36 +00:00
fix(agent): separate reasoning and tool hints to respect channel config
This commit is contained in:
parent
c27d2b1522
commit
33f59d8a37
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user