import type * as SarvamAI from "../../../../index.mjs"; /** * @example * { * model: "sarvam-prism", * state: "My Stripe integration stopped working and all checkout payments are failing.", * questions: { * "urgent": { * type: "noul" * }, * "department": { * type: "choice", * criteria: {} * }, * "severity": { * type: "score", * criteria: ["trivial", "minor", "moderate", "major", "critical"] * } * } * } */ export interface SystemOneRequest { /** The decision model to use. `sarvam-prism` (Sarvam Prism, serverless) or `clef` (Clef, on Provisioned Throughput; also accepts base64 `images`, up to 65,536 tokens per request). */ model: string; /** The input to decide on: text, or an object or array that is rendered as compact JSON. Required; an empty string is allowed. It is never truncated: if any one question (state + question + options) exceeds 32,768 tokens the request fails with `422`. */ state: SystemOneRequest.State; /** Map of your question ID to a question, at least one. There is no cap on the number of questions. Every question is answered in one call, and the answer uses the same ID. */ questions: Record; } export declare namespace SystemOneRequest { /** * The input to decide on: text, or an object or array that is rendered as compact JSON. Required; an empty string is allowed. It is never truncated: if any one question (state + question + options) exceeds 32,768 tokens the request fails with `422`. */ type State = string | Record | unknown[]; }