feat(agent): per-category tool timeouts with graceful degradation (#1890) (#2134)

This commit is contained in:
lmx-2077
2026-08-17 21:41:19 +08:00
committed by GitHub
parent 5c964bf23b
commit cfd6b0a5fb
14 changed files with 1757 additions and 139 deletions

View File

@@ -507,6 +507,15 @@ AGENT_SKILLS=
# AGENT_PORTFOLIO_AGENT_TIMEOUT_S=0
# AGENT_SKILL_AGENT_TIMEOUT_S=0
# Agent 工具按类别默认超时0=关闭;未配置时回退到全局 tool_call_timeout_seconds 预算)
# 有效超时按 first-wins 解析:显式 per-run tool_call_timeout_seconds > 单工具显式 timeout_seconds > 类别默认值 > 无限制;
# 剩余 wall-clock 预算仅作不可突破的外层 capinf/nan/负数视为无限制。
# market 类工具get_market_indices / get_sector_rankings 等网络数据调用)复用 AGENT_DATA_TOOL_TIMEOUT_S无独立开关。
# AGENT_DATA_TOOL_TIMEOUT_S=0
# AGENT_SEARCH_TOOL_TIMEOUT_S=0
# AGENT_ANALYSIS_TOOL_TIMEOUT_S=0
# AGENT_ACTION_TOOL_TIMEOUT_S=0
# 策略专家并发数(仅 specialist 模式生效;范围 1-4默认 3
# AGENT_SKILL_CONCURRENCY=3