ligbox-ops-platform/specs/029-agentic-ops-runbooks/contracts/agent-platform-api.md
Ligbox Spec Hub e0959e6fd7 Add Agentic Ops Spec 029: wire API, worker tick, T0/T1, staging stack.
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>
2026-06-19 23:22:33 +00:00

48 lines
838 B
Markdown

# 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
```json
{
"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:
```json
{
"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:
```json
{"question": "O que fazer se gap webhook > 15min?", "include_findings": true}
```
Response:
```json
{"answer": "...", "model": "qwen2.5:7b-instruct", "kb_hits": 3}
```