Read a review pass over the whole draft
Code Mode: praxis.studio.works.drafts.retrieveReview
HTTP: GET /studio/v1/works/{work}/drafts/{draft}/review
Read everything a reviewer needs in one answer: the deterministic check results, the semantic review list the genre asks a reader to judge, the brief coverage showing which unit claims each requirement point, and the body text. When the draft is long the body is a synopsis with an excerpt around each unit and next_page_token carries the full text. This is the call an agent makes before writing review comments.
签名
praxis.studio.works.drafts.retrieveReview(args:{path:{/** e.g. "wu-gang" */ work:string;/** e.g. "novel" */ draft:string};query?:{/** e.g. "01JQ8Z3M9K4V7B2N6C5X0YTRHW" */ page_token?:string}}):Promise<{/** Draft this report covers. e.g. "drf_01JQ8Z3M9K4V7B2N6C5X0YTRHW" */ draft:string;/** Content revision of the draft when the report was produced; a write after it makes the report out of date. e.g. 96 */ revision:number;/** Deterministic check results for the whole draft, each naming the check and the unit or block it concerns. */ checks:Array<{/** Key of the check that produced this row, such as unit_chars or body_total_chars; the genre lists which ones it runs. e.g. "unit_chars" */ check:string;/** Whether the check passed; a failed hard check blocks publishing until the text changes. */ ok:boolean;/** What the check found, in words, including the measured value and the bound it broke. e.g. "本章 2680 字,低于 3000 字的目标。" */ text:string;/** Unit the finding is about, present when the check is per unit. e.g. "unt_01JQ8Z3M9K4V7B2N6C5X0YTRHW" */ unit?:string;/** Block the finding is about, present when the check is per block, such as a missing image or a banned word. e.g. "blk_01JQ8Z3M9K4V7B2N6C5X0YTRHW" */ block?:string;/** How serious the finding is: an error fails the check, a warning is reported without failing it. */ severity:"error"|"warning";/** Whether this is a platform hard limit, which is the only kind a free-writing genre puts into its todo list. */ hard:boolean}>;/** Questions the genre asks a reader to judge, such as whether a character stays in voice; they have no automatic answer, so a reviewer reads and comments. */ semantic:Array<string>;/** Every requirement point of the brief with the units that claim it, so a gap is visible without reading the whole draft. */ brief_coverage:Array<{/** Key of the brief point, such as p1, which is what a unit claims in its intent. e.g. "p1" */ point:string;/** The requirement itself, as the brief currently reads. e.g. "主角是报社排字工" */ text:string;/** Numbers of the units claiming this point, empty when no unit claims it yet and the point is therefore unplaced. */ units:Array<number>;/** Whether at least one claiming unit already has a body, which separates a claimed point from a written one. */ written:boolean}>;/** The body text to review: the full text when the draft is short, otherwise a synopsis with an excerpt around each unit. e.g. "## 第十二章 排字房\\n\\n排字房的铅字盘上,压着一张通缉令。" */ markdown:string;/** Cursor for the next slice of body text, empty when this answer carried all of it; pass it back unchanged. e.g. "" */ next_page_token:string}>;参数
| 名称 | 位置 | 类型 | 必填 | 说明 |
|---|---|---|---|---|
| work | path | string | 是 | The work being addressed, either its organization-unique slug or its wk_ identifier; a slug case is what a person would say, and a renamed slug still resolves through its old value. |
| draft | path | string | 是 | Draft being addressed, either its in-work key such as novel or its drf_ identifier; a key renamed earlier still resolves through its previous value. |
| page_token | query | string | 否 | Cursor from the previous answer’s next_page_token; it is opaque, so pass it back unchanged and never build one from an id or an offset. |
响应
| 状态码 | 内容类型 | 说明 |
|---|---|---|
| 200 | application/json | Check results, semantic review questions, brief coverage and the body text, paged when the draft is long. |
| 400 | application/json | INVALID_PARAMS means a field is missing, malformed or not allowed for this resource; correct the named field and repeat the call. |
| 401 | application/json | The API key is missing, invalid or carries no organization; send a valid organization key in the Authorization header. |
| 404 | application/json | WORK_NOT_FOUND or DRAFT_NOT_FOUND means the work or the draft inside it is not reachable; use the slug and the draft key from the lists, or resolve a loose name first. A draft renamed earlier still answers under its previous key. |
| 500 | application/json | INTERNAL means the request could not complete; re-read the resource before retrying a write, because the write may already have landed. |