import { LLM } from '../../agents/providers.js'; import type { SarvamAILLMModel } from './models.js'; /** Options for {@link SarvamAILLM}. */ export type SarvamAILLMOptions = { /** Sarvam AI API key. Defaults to the `SARVAM_API_KEY` environment variable. */ apiKey?: string; /** Model id. Default `'sarvam-30b'`. */ model?: SarvamAILLMModel | string; /** Sampling temperature; higher is more random. Default `0.7`. */ temperature?: number; /** Tool-selection strategy. Default `'auto'`. */ toolChoice?: string; /** Maximum number of tokens to generate. Default `1024`. */ maxCompletionTokens?: number; /** Nucleus-sampling probability mass. Default `null` (provider default). */ topP?: number | null; /** Frequency penalty. Default `null`. */ frequencyPenalty?: number | null; /** Presence penalty. Default `null`. */ presencePenalty?: number | null; /** Random seed for reproducible sampling. Default `null`. */ seed?: number | null; /** Stop sequence(s). Default `null`. */ stop?: string | null; /** Stable end-user identifier. Default `null`. */ user?: string | null; /** Allow parallel tool calls. Default `null` (provider default). */ parallelToolCalls?: boolean | null; /** Structured-output response format. Default `null`. */ responseFormat?: Record | null; /** Reasoning effort hint. Default `null`. */ reasoningEffort?: string; /** Enable wiki grounding. Default `false`. */ wikiGrounding?: boolean; [key: string]: any; }; declare class SarvamAILLMImpl extends LLM { static readonly displayName = "SarvamAILLM"; _providerName: string; apiKey?: string; model: string; temperature: number; maxOutputTokens: number; toolChoice: string; topP: number | null; frequencyPenalty: number | null; presencePenalty: number | null; seed: number | null; stop: string | null; user: string | null; parallelToolCalls: boolean | null; responseFormat: Record | null; reasoningEffort: string | null; wikiGrounding: boolean; constructor(opts?: SarvamAILLMOptions); getRuntimeConfig(): Record; } export type SarvamAILLM = SarvamAILLMImpl; /** Sarvam AI large language model (LLM). */ export declare const SarvamAILLM: (opts?: SarvamAILLMOptions) => SarvamAILLM; export {};