JiuwenSwarm is an intelligent AI Agent built on openJiuwen. It extends the powerful capabilities of large language models directly to your fingertips through various communication apps you use daily.
Python
fix(skill_turbo): 豁免 skill_acceleration_exec 默认 300s 工具超时
n993577028728594a71276
diff --git a/jiuwenswarm/server/runtime/skill_turbo/skill_turbo_tools.py b/jiuwenswarm/server/runtime/skill_turbo/skill_turbo_tools.pyindex 5dd2d4fc21..465f364fd4 100644--- a/jiuwenswarm/server/runtime/skill_turbo/skill_turbo_tools.py+++ b/jiuwenswarm/server/runtime/skill_turbo/skill_turbo_tools.py@@ -435,6 +435,12 @@ async def skill_turbo(query: str) -> dict[str, Any]:)+# PPT 加速流水线经常超过 AbilityManager 默认 300s 工具超时;与 deepresearch_stream 一样+# 豁免外层 deadline。HITL 续跑走 adapter resume_stream,本来就不经过这次 tool.invoke。+# timeout_s=None 后仍受 MAX_TOOL_CALL_TIMEOUT_HARD_LIMIT(默认 3600s)约束。+skill_turbo.card.properties["resilience"] = {"timeout_s": None}++def get_skill_turbo_tools() -> list:"""返回 SkillTurbo 工具列表,供 interface_deep.py 注册。"""return [skill_turbo]diff --git a/tests/unit_tests/agentserver/test_skill_turbo_tools.py b/tests/unit_tests/agentserver/test_skill_turbo_tools.pynew file mode 100644index 0000000000..3d874c47dd--- /dev/null+++ b/tests/unit_tests/agentserver/test_skill_turbo_tools.py@@ -0,0 +1,10 @@+# Copyright (c) Huawei Technologies Co., Ltd. 2026. All rights reserved.+"""Contracts for the skill_acceleration_exec tool wrapper."""++from __future__ import annotations++from jiuwenswarm.server.runtime.skill_turbo.skill_turbo_tools import skill_turbo+++def test_skill_acceleration_exec_defers_timeout_to_pipeline() -> None:+ assert skill_turbo.card.properties["resilience"]["timeout_s"] is None