From af4e34ac63b5e32704877cec85a7d257dd799132 Mon Sep 17 00:00:00 2001 From: ThearchyHelios Date: Tue, 6 Oct 2026 13:12:21 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=8B=E8=AF=95=E8=AF=B4=E6=98=8E=E8=A1=A5?= =?UTF-8?q?=E4=B8=8A=E5=A4=9A=20Agent=20=E5=8D=8F=E4=BD=9C=E5=92=8C?= =?UTF-8?q?=E8=AE=A9=E6=A8=A1=E5=9E=8B=E5=88=86=E7=B1=BB=E7=9A=84=E6=9D=A1?= =?UTF-8?q?=E4=BB=B6=E5=88=86=E6=94=AF=EF=BC=8C=E8=BF=87=E9=95=BF=E7=9A=84?= =?UTF-8?q?=E4=B8=80=E8=A1=8C=E6=8B=86=E5=BC=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/tests/test_provider_ref_runtime.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/backend/tests/test_provider_ref_runtime.py b/backend/tests/test_provider_ref_runtime.py index 2a081bf7..97145520 100644 --- a/backend/tests/test_provider_ref_runtime.py +++ b/backend/tests/test_provider_ref_runtime.py @@ -3,7 +3,7 @@ 以前点名的接入不存在时 get_chat_model 悄悄换成演示模型(mock-fast):报告由它写成假文本,双盲复算、反方审稿、审批 质询由它来「核查」,正式运行照样出具。现在(providers/factory.named_provider): -- 模型调用、Agent、报告撰写节点:节点失败,报错带原因和去哪里改,一次模型调用都不发; +- 模型调用、Agent、报告撰写、多 Agent 协作、让模型分类的条件分支:节点失败,报错带原因和去哪里改,一次模型调用都不发; - 双盲复算:该指标无法复算,原因「核查模型不可用(…)」,记缺口;反方审稿:这几句未能反查,原因同上; - 审批质询:回答 ok 为假,error 说明原因;结论句裁判:按「裁判模型不可用」照实记未裁判和缺口; - 助手:报错给用户,查当前用哪个模型的接口照常返回、写明原因;门控模型:转人工审批、写明原因; @@ -458,7 +458,8 @@ async def test_a_scheduled_formal_run_naming_a_broken_provider_fails_and_is_stil try: await loop.fire_due(NINE + timedelta(seconds=5)) async with SessionLocal() as session: - [fire] = list((await session.execute(select(ScheduleFire).where(ScheduleFire.schedule_id == sid))).scalars()) + fired = await session.execute(select(ScheduleFire).where(ScheduleFire.schedule_id == sid)) + [fire] = list(fired.scalars()) assert fire.status == "started" and fire.run_id run = await wait(fire.run_id, ("succeeded", "failed", "cancelled")) assert run.status == "failed" and run.run_class == "formal"