Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion astrbot/core/agent/runners/tool_loop_agent_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -936,6 +936,9 @@ async def step(self):
logger.warning(
"skills_like tool re-query returned no tool calls; fallback to assistant response."
)
# Finalize before yielding so response hooks can review or rewrite
# the fallback text before downstream stages send it.
await self._complete_with_assistant_response(llm_resp)
Comment thread
sourcery-ai[bot] marked this conversation as resolved.
Comment thread
sourcery-ai[bot] marked this conversation as resolved.
if llm_resp.reasoning_content:
yield AgentResponse(
type="llm_result",
Expand All @@ -958,7 +961,6 @@ async def step(self):
),
)

await self._complete_with_assistant_response(llm_resp)
return
else:
llm_resp.tools_call_name = requery_resp.tools_call_name
Expand Down
Loading