import type * as SarvamAI from "../index.js"; export interface DocAiClassifyResult { scope?: DocAiClassifyResult.Scope | undefined; /** Reference to the input document. */ input_document_ref?: string | undefined; /** With `scope: page`, one decision per page. */ decisions?: SarvamAI.DocAiClassifyDecision[] | undefined; /** The pages that were read, e.g. `{"complete": true, "selected_pages": [1, 2]}`. */ inspection?: Record | undefined; /** Supporting evidence, when `output.include_evidence` is `true`. */ evidence?: SarvamAI.DocAiEvidence[] | undefined; /** 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; /** `matched` (a category fits), `unknown` (none fits) or `mixed` (the file holds several documents). */ classification_status?: string | undefined; } export declare namespace DocAiClassifyResult { const Scope: { readonly Document: "document"; readonly Page: "page"; }; type Scope = (typeof Scope)[keyof typeof Scope]; }