Skip to main content

AiReviewField

A grid column. Stored inline on the review; draft and generated columns share this shape.

type AiReviewField {
id: ID!
label: String!
state: AiReviewFieldState!
type: AiReviewFieldType!
prompt: String!
options: [String!]
unit: String
displayOrder: Int!
modelKey: String
firstRunId: ID
generatedAt: DateTime
model: AiReviewModel
}

Fields​

AiReviewField.id ● ID! non-null scalar​

AiReviewField.label ● String! non-null scalar​

AiReviewField.state ● AiReviewFieldState! non-null enum​

AiReviewField.type ● AiReviewFieldType! non-null enum​

Drives how the column renders and sorts, what the extraction prompt asks for, and the shape of AiReviewCell.valueJson.

AiReviewField.prompt ● String! non-null scalar​

The reviewer's question. The format supplies the output shape.

AiReviewField.options ● [String!] list scalar​

Non-empty exactly when type is SINGLE_SELECT or MULTI_SELECT. The model cannot return anything outside this list.

AiReviewField.unit ● String scalar​

ISO code for CURRENCY, a unit label for NUMBER. Null otherwise.

AiReviewField.displayOrder ● Int! non-null scalar​

AiReviewField.modelKey ● String scalar​

Null means Auto. A definition property like Type, Prompt, Options and Unit: changeable only while State is DRAFT. AiReviewFieldModelResolvers resolves the key into the picker shape.

AiReviewField.firstRunId ● ID scalar​

The first run that attempted this column. Null while state is DRAFT.

AiReviewField.generatedAt ● DateTime scalar​

AiReviewField.model ● AiReviewModel object​

Resolves through Find, which returns Archived entries too, so a column pinned to a retired model still renders a label instead of a raw key. Null when modelKey is null (Auto) or names nothing this deployment has ever offered.

Member Of​

AiReview object ● AiReviewColumnPayload object ● AiReviewColumnsPayload object