auto-sync: 2026-05-31 07:02:12 (catch-all)

This commit is contained in:
cfdaily
2026-05-31 07:02:12 +08:00
parent 78ab070a7b
commit 098ccb0006
+10
View File
@@ -134,6 +134,15 @@ async def lifespan(app: FastAPI):
max_concurrent_sessions=daemon_config.get("max_concurrent_sessions", 3),
default_cooldown_seconds=daemon_config.get("cooldown_seconds", 120),
)
# BootstrapBuilderL2 引擎注入层)
template_dir = DATA_ROOT.parent / "prompt_templates"
if not template_dir.exists():
template_dir = Path("prompt_templates")
bootstrap_builder = BootstrapBuilder(
template_dir=template_dir,
max_tokens=4096,
)
spawner = AgentSpawner(
dry_run=False,
agent_timeout=daemon_config.get("agent_timeout", 630),
@@ -143,6 +152,7 @@ async def lifespan(app: FastAPI):
api_host=api_host,
api_port=api_port,
counter=counter,
bootstrap_builder=bootstrap_builder,
)
# 构建 Agent 能力画像(v2.6.1 路由)