feat: simple test endpoint for v2 imports

This commit is contained in:
ymq 2026-08-10 11:15:39 +08:00
parent 5936c7f59d
commit 48ec38c8ab

View File

@ -0,0 +1,17 @@
# test_agent_v2_simple.dspy - Agent v2 无认证快速测试
from pipeline_core.agent_config import AgentConfig, SDLC_DEFAULT_CONFIG, load_agent_config
from pipeline_service.agent_loop_v2 import AgentExecutor
# 快速验证导入
cfg = await load_agent_config()
result = {
"ok": True,
"max_turns": cfg.max_turns,
"tools_count": len(cfg.tools),
"compression_enabled": cfg.compression.enabled,
"memory_enabled": cfg.memory.enabled,
"skills_enabled": cfg.skills.enabled,
}
return json.dumps(result, ensure_ascii=False)