Poll a Search Agent run
Retrieve the current state and result of a Search Agent run
Notes
- Poll with the
run_idreturned by Dispatch a Search Agent run.statusprogressesqueued→running→completed/failed; theresult(aSearchAgentResult) is populated oncestatusiscompleted. - The result carries
answer,cards,citations, and — when the request supplied anoutput_schema— thestructured_output*fields. There is noweb_resultsfield; web and Tako sources alike land in the top-levelcitationsregistry. - To resume or tail the run as a live Server-Sent Events stream, send
Accept: text/event-stream. Usestarting_after(or theLast-Event-IDheader) to replay only events whoseseqis greater than a value you’ve already seen. See the Search Agent guide.
Authorizations
Path Parameters
Run ID returned by POST /v1/agent/search/runs
Query Parameters
SSE resume cursor (Accept: text/event-stream only). Replay events with seq strictly greater than this value. Equivalent to the Last-Event-ID header.
x >= 0Response
Current state of the agent run. With Accept: text/event-stream, resumes/tails the run as an SSE stream of SearchAgentStreamEnvelope events (use starting_after or Last-Event-ID to resume); if the stream ends without an agent_result event, poll this endpoint with Accept: application/json for terminal status.
The search-agent run resource returned by dispatch (202) and poll (GET).
queued, running, completed, failed "agent.search.run"Final search-agent output. answer is markdown prose with [n] citation markers; cards reuse the sibling TakoCard; citations is the unified top-level registry (data + web, S1 §5.2) — there is no web_results field; metadata carries definitions/assumptions/methodology (citations lifted out). structured_output_* fields carry the caller-shaped output_schema result (S3 §5.1) — present iff the request supplied output_schema; see each field's description for the exact presence matrix.
Cost-plus usage for one metered request. total_cost_usd is always present
(the total quoted charge). compute / data are the additive breakdown and
appear only where they apply. See module docstring for the quote-vs-drawdown
caveat and the total == compute + data invariant.
Request body for POST /v1/agent/search/runs.