空响应就raise

This commit is contained in:
UnCLAS-Prommer
2025-08-06 13:06:53 +08:00
parent cc3d910cf6
commit 3d98b56c15
2 changed files with 5 additions and 2 deletions

View File

@@ -111,7 +111,7 @@ class ToolExecutor:
# 调用LLM进行工具决策
response, (reasoning_content, model_name, tool_calls) = await self.llm_model.generate_response_async(
prompt=prompt, tools=tools
prompt=prompt, tools=tools, raise_when_empty=False
)
# 执行工具调用