| 123456789101112131415 |
- """find_agent 本地运行参数(不属于通用 supply_agent 配置)。"""
- from __future__ import annotations
- import os
- def find_agent_timeout_seconds() -> float:
- """单次 find_agent 运行总超时(秒),可读环境变量 FIND_AGENT_TIMEOUT_SECONDS。"""
- raw = os.getenv("FIND_AGENT_TIMEOUT_SECONDS", "600")
- try:
- value = float(raw)
- except ValueError:
- value = 600.0
- return max(60.0, min(7200.0, value))
|