Mounts agents router and schema init, adds VM123 checks, chat copilot, Desk UI module, isolated docker-compose staging on ports 8180/8192, and full spec documentation without touching production ports. Co-authored-by: Cursor <cursoragent@cursor.com>
838 B
838 B
Agent Platform API — Spec 029
Base: https://api.ops.ligbox.com.br/api/v1/agents (prod)
Staging: http://10.10.10.122:8180/api/v1/agents
GET /health
{
"status": "ok",
"tier": "t1",
"ollama": true,
"ollama_url": "http://10.10.10.123:11434",
"model": "qwen2.5:7b-instruct",
"embed_model": "nomic-embed-text"
}
POST /internal/tick
Headers: X-Ops-Internal-Token: {OPS_INTERNAL_TOKEN}
Response:
{
"ok": true,
"kb_indexed": 65,
"runs": [{"ok": true, "scenario_id": "desk.api.health", "status": "ok", "findings_count": 0}],
"total": 9
}
POST /chat
Headers: Authorization: Bearer {jwt}
Body:
{"question": "O que fazer se gap webhook > 15min?", "include_findings": true}
Response:
{"answer": "...", "model": "qwen2.5:7b-instruct", "kb_hits": 3}