1askHow do 60 countries fund AI?2findthe webregistersjournals3choose1234the ministry itself4readthe whole text, exact5locatethe passage that answers6write7checkevery sentence leads back
The run in 7 steps
Search 20 countries in one call
written once: official sources first3 of 20 questions, each in its languageBrazilestratégia nacional de IAGermanynationale KI-StrategieFrancestratégie nationale en IA123412341234the ministrythe ministrythe ministryone call, and a tally of all 20
search_batch runs 20 of them at once, so 60 countries are 3 calls. The fields at the top apply to every search: official and primary sources first, and your own instructions for the ranking. contents fetches the first result of each search in the same call, finds the passages for 4 questions in it, and has a model fill a template of 5 fields, sent as a JSON Schema.
Request body of search_batch, cut to 2 of 20 items
Read what each source is
Every result has a profile: the kind of its publisher, and whether it is a primary source. A ministry’s own strategy comes before a consultancy’s summary of it, and the summary stays in the list for context. A news story that 14 sites reprinted is one result, with the number of its copies.Read each cell for what it rests on
Each field of the template has a status. This part of the response is the row of one country, cut to the status and the printed page of each field.Part of the response
found is a figure with its page, and absent is a finding: this strategy names no budget for compute. unread says that a part of the document was not read, so the report can say nothing yet about a supercomputer. A field has one of 2 more statuses in other cases: empty if the source shows the field with no value, and failed if the model could not fill it.
Finish the strategies that did not fit
Some strategies are 200-page PDFs, and some are scans. A document that was not finished inside the search comes back aspartial. Send its address to upload_contents, which reads the whole of it as a job, and fill the template again from that record. A scanned page that was read with low confidence is named, so a person looks at those pages and not at all of them.
Read only the sections that matter
Where the evidence is thin, your agent reads one section by its id withget_section, or the tables of one section with list_blocks. Each of these reads is from the stored record, so it costs nothing and returns the same text to every agent of the run.
Check the draft before it goes out
A second agent takes the draft and sends each quoted figure to its record as a highlight, withdeterministic_only set to true. A quote whose words are in one block of the source comes back as exact, or as near if only its case or the punctuation at the ends of its words differs. A quote that is found nowhere gets the notice highlight_not_found, and its sentence goes back to the writer. This check uses no model and costs nothing.
a draft, 5 quotesthe source it citesnot foundnot found3 found word for word, 2 not
Take the method section from the receipts
Each search is stored with its receipt: which datasources ran, with which wordings, what was dropped, and what could not be searched. Withrecord_form set to plain, a search also returns that account written out, ready for the method section of the report. A gap is said and not hidden: if no datasource in a country’s language was searched, the report can say so.
What the reader of the report can check
Update the report next quarter
Store each source’s Markdown with its fingerprint and the version of getclean that read it, because a record is stored for at most 30 days. Next quarter, fetch the sources again under that version, withpinned_version, and compare each new fingerprint with the stored one. For each source whose fingerprint differs, compare_contents takes the stored Markdown and its fingerprint as the baseline and returns the blocks and the table cells that changed, with the text before and after.