修复:智能分析空回答与工具结束条件冲突
统一自主分析工具范围与执行前校验,严格核验正常结束、最终正文和图表恢复状态,并显示空回答及恢复失败原因。 包含两次已上线修复及回归测试,保留已有回答与业务数据。 验证:1101 项 Python、469 项前端、97 项后端测试通过;前后端构建和真实模型、页面验收通过。
This commit is contained in:
@@ -112,7 +112,9 @@ def run_native_exploration(*, request, task, authority, actor_root, delegated, c
|
||||
and type(progress.get('noProgress')) is int and progress['noProgress'] >= 3)
|
||||
if controlled_no_progress:
|
||||
missing.append('连续三次没有取得新证据,调查已停止;其余线索尚未验证。')
|
||||
natural_finish = 'stop' in accumulator.finish_reasons and stop_succeeded is not False
|
||||
natural_finish = bool(accumulator.finish_reasons and accumulator.finish_reasons[-1] == 'stop'
|
||||
and stop_succeeded is not False
|
||||
and getattr(accumulator, 'final_answer_ready', True))
|
||||
corrected_tool_errors = (native_reason == 'mcp_error' and natural_finish
|
||||
and complete_scopes is not None and bool(documents)
|
||||
and not missing and not progress.get('halted'))
|
||||
|
||||
Reference in New Issue
Block a user