Skip to main content
POST
Run AutoRAG agent with streaming response

Authorizations

Authorization
string
header
required

Use a Bearer token for authentication. Submit the token using the Authorization header: Authorization: Bearer <token>.

Body

application/json
username
string
required
namespace
string
required
query
string
required
Example:

"What do llamas drink to cool themselves down?"

helperPrompt
string
Example:

"You're a prophet of the alpacalypse. Your task is to spit the word!"

model
string
provider
string
models
object

Per-stage model overrides for the AutoRag pipeline.

conversationId
string

Existing conversation to continue. Omit to start a new conversation; the id is returned on the run-started SSE event.

Override web search for this request: false disables it; omit (or true) to use the deployment default.

callerContext
object

Context established outside this platform — typically by an agent the calling system ran before this one. It is rendered into the planning and answering prompts as caller-asserted background: it never overrides data retrieved from the datasets, and it never widens data access. Applies to the turn it is sent with.

asOf
string<date-time>

Instant the agent treats as now when resolving relative dates such as "last quarter"; today is its UTC date. Applies to this request only, so resend it on every turn of a conversation. Does not restrict the data or web results to that instant; omit to use the current time.

Example:

"2026-03-31T12:00:00.000Z"

Response

SSE stream of AutoRAG execution events.

SSE event containing the execution plan. Event name is "plan".

steps
string[]
required

List of step descriptions that will be executed.

reasoning
string
required

The reasoning produced by the LLM when generating the plan.