1. Start a query
turns needs only one object. Multi-turn conversations add more objects to the turns array.
The response is { "id": task_id }.
2. Poll for the result
status is SUCCESS. While pending, the response’s info field includes the currently generated content, search strategies, and search results so far, useful for streaming a “thinking” state to users.
Back off between polling requests and enforce an overall timeout. See Errors and rate limits.
Useful parameters
rankBy values
all: a combination of the factors below (default)relevance: relevance to the querydate: most recent firstcitations: by citation countsupporting-citations/contrasting-citations: by supporting or contradicting citation countjournal-rank: by journal rank/impact
Related
- Reference Check guide: the same poll pattern, for evaluating a document’s references instead of answering a question
- Errors and rate limits: retry and polling guidance
