mirror of
https://github.com/AstrBotDevs/AstrBot
synced 2026-07-15 17:30:13 +08:00
Update astrbot/core/astr_agent_hooks.py
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
This commit is contained in:
@@ -21,7 +21,7 @@ class MainAgentHooks(BaseAgentRunHooks[AstrAgentContext]):
|
||||
run_context,
|
||||
)
|
||||
|
||||
async def on_agent_done(self, run_context, llm_response) -> None:
|
||||
async def on_agent_done(self, run_context: ContextWrapper[AstrAgentContext], llm_response: LLMResponse) -> None:
|
||||
# 执行事件钩子
|
||||
if llm_response and llm_response.reasoning_content:
|
||||
# we will use this in result_decorate stage to inject reasoning content to chain
|
||||
|
||||
Reference in New Issue
Block a user