Fetch a Stript anonymization result
stript_fetch_resultFetch anonymized Stript document results, waiting if the document is still in review. Returns only anonymized content, never original text.
Instructions
Use this to fetch the anonymized result of a Stript document, for example after a pending_review status or after the app was restarted mid-review. If the document is still in review, this call WAITS for the user to finish the review in Stript and returns the result as soon as they click Anonymize. When it returns pending_review instead, call it again immediately to keep waiting, and repeat while the result says pending_review and the user has not cancelled. The document_id is optional, without it the most recent document in the project is fetched, so a plain "fetch my Stript result" works. Returns only anonymized content, never the original document text. Reading a stored result is free, it never consumes an evaluation document.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| document_id | No | The Stript document id to fetch. Omit for the most recent document. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| next | No | ||
| types | No | ||
| status | Yes | ||
| warnings | No | ||
| evaluation | No | ||
| project_id | No | ||
| document_id | No | ||
| output_file | No | ||
| replacements | No | ||
| residual_risk | No | ||
| anonymized_text | No | ||
| degraded_reasons | No | ||
| detections_total | No | ||
| reduced_accuracy | No |