List tools
Authorization
TokenAuth Project API key as Token lb-sk_...
In: header
Path Parameters
Response Body
application/json
curl -X GET "https://example.com/v1/agents/string/tools"{ "tools": [ { "id": "string", "name": "string", "description": "string", "http_url": "string", "http_method": "string", "parameters": {}, "auth_header": "string", "secret_ref": "string", "rate_per_min": 0, "allowed_hosts": [ "string" ] } ]}List rules GET GET
Previous Page
OpenAI-compatible chat completions POST POST
Point any OpenAI client at Libra: `model` is the **agent name** (a `libra:` prefix is tolerated), auth accepts `Bearer`. The full server-side pipeline (rules, guardrails, tools/flow, risk-hold) runs on every request; client `system` messages are ignored (the agent owns its instructions). With `stream: true` the response is `text/event-stream` of `chat.completion.chunk` events terminated by `data: [DONE]`. Default mode is **buffer-then-stream** (pipeline completes, approved answer replays as chunks); agents with `stream_mode: "live"` stream tokens as generated when the guard gate allows (output guard off, no tools/flow). Typed extras (`ui_actions`, `citations`, `escalated`) ride in a non-standard `x_libra` field on the final chunk / completion object.