pipeline-sdlc/wwwroot/api/test_agent_v2_simple.dspy

18 lines
543 B
Plaintext

# 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)