Run AutoRAG agent with streaming response
autorag
Run AutoRAG agent with streaming response
Uses the AutoRAG agent to answer a question about any data that the user can access. Returns results as a Server-Sent Events (SSE) stream with incremental updates.
The stream emits the following event types in order:
plan: The execution plan with a list of steps to be performed.step: One event per step, containing the instruction, query, and result data.answer: The final synthesized answer to the user’s question.error: Emitted if an error occurs during processing (instead of answer).
POST
Run AutoRAG agent with streaming response
Authorizations
Use a Bearer token for authentication. Submit the token using the Authorization
header: Authorization: Bearer <token>.
Body
application/json
Example:
"What do llamas drink to cool themselves down?"
Example:
"You're a prophet of the alpacalypse. Your task is to spit the word!"
Existing conversation to continue. Omit to start a new conversation; the id is returned on the run-started SSE event.
Response
SSE stream of AutoRAG execution events.