Authorizations
Body
application/json
Request model for agent queries.
The natural language query
Minimum length:
1
Response
Stream started successfully
The response is of type any
.
Streams cited Markdown responses, sourced exclusively from corporate disclosures, as server-sent events in response to natural language queries. This endpoint provides real-time streaming of AI-generated answers, making it ideal for interactive chat interfaces where users can see responses as they’re generated.
Server-Sent Events (SSE) Structure:
data: {"type": "thinking", ...}
- Agent’s thinking process with stage information
data: {"type": "thinking", "role": "assistant", "content": "...", "stage": "search"}
data: {"type": "message", ...}
- Response content chunks
data: {"type": "message", "role": "assistant", "content": "..."}
data: {"type": "warning", ...}
- Warning when no documents found
data: {"type": "warning", "message": "..."}
data: {"type": "sources", ...}
- Source document information
data: {"type": "sources", "content": {"#ref_id": {"content": "...", "pageNumber": 123, "excerpt": "...", "documentMetadata": {"id": "...", "documentCategory": "...", "formType": "...", "tickers": ["..."], "companyName": "...", "date": "...", "fiscalQuarter": 1, "fiscalYear": 2025}}}}}
- Document sources and citationsdata: {"type": "done"}
- Stream completion
data: {"type": "done"}
Request model for agent queries.
The natural language query
1
Stream started successfully
The response is of type any
.