Agent

Run

Run the Labric data-analysis agent and return its final answer alongside the tool calls it made. With stream=true the response is instead a stream of server-sent AgentRunEvent events, closing after a terminal result event that carries the same summary, or an error event if the run fails; prefer streaming for long analyses. Pass chat_id to continue a saved conversation, or save=true to save the run as a new chat visible in the web UI; if saving fails, the answer is still returned but its chat_id is null. Tools that change data are available to the run only when the API key holds the write scope.

Requires an API key with the read scope.

post/api/v1/agent/runs

Request

  • Base URL: https://platform.labric.co
  • URL: https://platform.labric.co/api/v1/agent/runs
  • Auth: HTTP bearer

Request body

promptstring required
modelstring nullable
chat_idstring uuid nullable
saveboolean
streamtrue required

Changes

No recorded changes to this operation across all 1 revision of this API.