import type * as SarvamAI from "../index.js"; /** * Classify options. Use at most one page selector from `max_pages`, `target_pages` and `inspection`. */ export interface DocAiClassifyConfig { /** `document` returns one decision for the file. `page` returns one decision per page in `decisions`. */ scope?: DocAiClassifyConfig.Scope | undefined; /** Categories to choose from. Omit them to let the API suggest a document type. */ categories?: SarvamAI.DocAiClassifyCategory[] | undefined; /** What to do when no category matches. `suggest_type` returns a `suggested_type`; `other` returns `type: "other"` without a suggestion. */ unmatched_behavior?: DocAiClassifyConfig.UnmatchedBehavior | undefined; /** Your own instruction text. */ prompt?: string | undefined; /** Inspect only the first N pages. */ max_pages?: number | undefined; /** Inspect only these 1-based pages, e.g. `[1, 6, 8]`. */ target_pages?: number[] | undefined; inspection?: SarvamAI.DocAiClassifyInspection | undefined; } export declare namespace DocAiClassifyConfig { /** `document` returns one decision for the file. `page` returns one decision per page in `decisions`. */ const Scope: { readonly Document: "document"; readonly Page: "page"; }; type Scope = (typeof Scope)[keyof typeof Scope]; /** What to do when no category matches. `suggest_type` returns a `suggested_type`; `other` returns `type: "other"` without a suggestion. */ const UnmatchedBehavior: { readonly SuggestType: "suggest_type"; readonly Other: "other"; }; type UnmatchedBehavior = (typeof UnmatchedBehavior)[keyof typeof UnmatchedBehavior]; }