fix(agent): make tool hint a fallback when no content in on_progress
This commit is contained in:
@@ -196,7 +196,8 @@ class AgentLoop:
|
|||||||
clean = self._strip_think(response.content)
|
clean = self._strip_think(response.content)
|
||||||
if clean:
|
if clean:
|
||||||
await on_progress(clean)
|
await on_progress(clean)
|
||||||
await on_progress(self._tool_hint(response.tool_calls))
|
else:
|
||||||
|
await on_progress(self._tool_hint(response.tool_calls))
|
||||||
|
|
||||||
tool_call_dicts = [
|
tool_call_dicts = [
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user