Upload and create a goal
Upload each PDF or image and keep itsdocument_id. Delete an upload you no
longer need.
Create a goal through the normal quote/payment flow:
string, number and boolean. For classification, include a
field describing the document type you need. Field names are unique ASCII
identifiers starting with a letter. Each document uses the same field list.
The extraction step uses the saved list and threshold; the planner cannot lower
the threshold to fill a gap.
Results and unresolved fields
Read the goal’s outputs. Each extraction writesresults/document-extraction/{task_id}.json, including pages_processed,
cost_usdc and fields:
left, top, width, height coordinates in [0,1]. Every resolved field has
a page and either quoted text or a region. Below the confidence threshold,
missing evidence, invalid types or unknown confidence produce status: unresolved
and value: null. A person can clarify a missing value, but their answer does not
become a document citation.