import type * as SarvamAI from "../index.js"; /** * One Classify decision, for a whole document or a single page. */ export interface DocAiClassifyDecision { /** Page number, on per-page decisions. */ input_page?: number | undefined; /** The matched category. `null` when `classification_status` is `unknown` or `mixed`; `other` when nothing matched and `unmatched_behavior` is `other`. */ type?: string | undefined; /** Why the status is `unknown`: `no_matching_type`, or `insufficient_evidence` when the pages were not enough to tell. */ reason_code?: string | undefined; reasoning?: string | undefined; /** A token-based score from 0 to 1, or `null`. Not a measured probability of being correct. */ confidence?: number | undefined; /** Whether a person should check the answer. */ review_required?: boolean | undefined; /** E.g. `NO_MATCHING_TYPE`, `MODEL_SCORE_UNAVAILABLE`, `MULTIPLE_DOCUMENTS_DETECTED`. */ review_reasons?: string[] | undefined; suggested_type?: SarvamAI.DocAiSuggestedType | undefined; /** Present on per-page decisions when `output.include_evidence` is `true`. */ evidence?: SarvamAI.DocAiEvidence[] | undefined; /** `matched` (a category fits), `unknown` (none fits) or `mixed` (the file holds several documents). */ classification_status?: string | undefined; }