import type * as SarvamAI from "../index.js"; export interface CreateResponseV2Response { /** Rewritten to this service's request id. The id is for logs and `x-request-id`; responses are not stored for retrieval. */ id: string; object: "response"; /** Unix timestamp (seconds) when the response was created. Returned as a float (e.g. `1789632469.0`), not an integer. */ created_at?: number | undefined; /** Typically `completed`, `incomplete`, or `failed`. Corrected to `incomplete` with `incomplete_details.reason: max_output_tokens` when the caller set `max_output_tokens`, the backend reported `output_tokens >= max_output_tokens`, `status` was `completed`, and `incomplete_details` was absent. */ status?: string | undefined; /** Rewritten to the public model id the caller asked for. */ model: string; /** Typed output items from the backend — messages, reasoning, function calls, and vendor extras. */ output: SarvamAI.ResponseOutputItem[]; incomplete_details?: SarvamAI.ResponseIncompleteDetails | undefined; error?: SarvamAI.V2ErrorObject | undefined; usage?: SarvamAI.ResponseUsage | undefined; /** Echoed back from the request. */ temperature?: number | undefined; /** Echoed back from the request. */ top_p?: number | undefined; /** Echoed back from the request. */ tools?: SarvamAI.ResponseFunctionTool[] | undefined; /** Echoed back from the request. */ tool_choice?: CreateResponseV2Response.ToolChoice | undefined; /** Echoed back from the request when set. */ instructions?: string | undefined; /** Echoed back from the request. Always `false` — nothing created by this endpoint is retrievable. */ store?: boolean | undefined; /** Echoed from the request as sent — see the request field description for actual enforcement behavior. */ parallel_tool_calls?: boolean | undefined; /** Echoed back from the request. */ max_output_tokens?: number | undefined; /** OpenAI-compatible service-tier field, present for schema parity. Observed value: `"auto"`. */ service_tier?: string | undefined; /** Echoed back from the request. `true` is `400` — see the request field. */ background?: boolean | undefined; /** Unix timestamp (seconds, float) when generation finished. `null` while incomplete or failed. */ completed_at?: number | undefined; /** Echoed back from the request. */ conversation?: SarvamAI.ResponseConversation | undefined; /** Echoed back from the request. Always `400` if set — not supported by any serving deployment. */ max_tool_calls?: number | undefined; /** Not in the documented request schema, but accepted and echoed back. Defaults to `{}`. */ metadata?: Record | undefined; /** Echoed back from the request. Always `400` if set — this endpoint holds no state. */ previous_response_id?: string | undefined; /** Echoed back from the request. */ reasoning?: SarvamAI.ResponseReasoning | undefined; /** Echoed back from the request. */ text?: SarvamAI.ResponseTextConfig | undefined; /** Not in the documented request schema, but accepted and echoed back. Observed default: `0`. Behavior on this route is otherwise unverified. */ presence_penalty?: number | undefined; /** Not in the documented request schema, but accepted and echoed back. Observed default: `0`. Behavior on this route is otherwise unverified. */ frequency_penalty?: number | undefined; /** Not in the documented request schema. Accepted and echoed back; behavior otherwise unverified. */ prompt?: Record | undefined; /** Not in the documented request schema. Accepted and echoed back; behavior otherwise unverified. */ prompt_cache_key?: string | undefined; /** Not in the documented request schema. Accepted and echoed back; behavior otherwise unverified. */ prompt_cache_retention?: string | undefined; /** Not in the documented request schema. Accepted and echoed back; behavior otherwise unverified. */ safety_identifier?: string | undefined; /** Not in the documented request schema. Accepted and echoed back. Observed default: `0`; behavior otherwise unverified. */ top_logprobs?: number | undefined; /** Not in the documented request schema. Accepted and echoed back. Observed default: `"disabled"`; behavior otherwise unverified. */ truncation?: string | undefined; /** Not in the documented request schema. Accepted and echoed back; behavior otherwise unverified. */ user?: string | undefined; /** Reserved — always observed as `null` in testing. Shape not yet defined; do not rely on this field. */ billing?: Record | undefined; /** Accepts any additional properties */ [key: string]: any; } export declare namespace CreateResponseV2Response { /** * Echoed back from the request. */ type ToolChoice = SarvamAI.ToolChoiceOption | Record; }