feat: simple test endpoint for v2 imports
This commit is contained in:
parent
5936c7f59d
commit
48ec38c8ab
17
wwwroot/api/test_agent_v2_simple.dspy
Normal file
17
wwwroot/api/test_agent_v2_simple.dspy
Normal 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)
|
||||||
Loading…
x
Reference in New Issue
Block a user