import { LLM } from '../../agents/providers.js'; import type { AzureOpenAILLMModel } from './models.js'; /** Configuration options for the {@link AzureOpenAILLM} provider. */ export type AzureOpenAILLMOptions = { /** Azure OpenAI API key. Falls back to the `AZURE_OPENAI_API_KEY` env var, then `null`. */ apiKey?: string | null; /** Azure OpenAI resource endpoint. Falls back to the `AZURE_OPENAI_ENDPOINT` env var, then `null`. */ azureEndpoint?: string | null; /** Azure deployment name (used as the model). Default: `''`. */ deployment?: AzureOpenAILLMModel | string | null; /** Azure OpenAI REST API version. Default: `'2024-10-21'`. */ apiVersion?: string; /** Sampling temperature. Range `0`-`2`. Default: `0.7`. */ temperature?: number; /** Maximum number of tokens to generate. Default: `1024`. */ maxOutputTokens?: number; /** Nucleus sampling probability mass. Default: `null`. */ topP?: number | null; /** Frequency penalty. Range `-2`-`2`. Default: `null`. */ frequencyPenalty?: number | null; /** Presence penalty. Range `-2`-`2`. Default: `null`. */ presencePenalty?: number | null; /** Sampling seed for reproducible outputs. Default: `null`. */ seed?: number | null; /** Stop sequence(s). Default: `null`. */ stop?: string | null; /** Opaque end-user identifier. Default: `null`. */ user?: string | null; /** Tool-selection strategy, e.g. `'auto'`, `'none'`. Default: `null`. */ toolChoice?: string | null; /** Whether to allow parallel tool calls. Default: `null`. */ parallelToolCalls?: boolean | null; /** Response format object, e.g. JSON mode. Default: `null`. */ responseFormat?: Record | null; /** Reasoning effort level for reasoning models. Default: `null`. */ reasoningEffort?: string | null; }; declare class AzureOpenAILLMImpl extends LLM { static readonly displayName = "AzureOpenAILLM"; _providerName: string; apiKey: string | null; endpoint: string | null; model: string; apiVersion: string; temperature: number; maxOutputTokens: number; topP: number | null; frequencyPenalty: number | null; presencePenalty: number | null; seed: number | null; stop: string | null; user: string | null; toolChoice: string | null; parallelToolCalls: boolean | null; responseFormat: Record | null; reasoningEffort: string | null; constructor(opts?: AzureOpenAILLMOptions); getRuntimeConfig(): Record; } export type AzureOpenAILLM = AzureOpenAILLMImpl; /** * Azure OpenAI large language model provider. * * Creates a configured Azure OpenAI LLM provider for use in a voice agent. */ export declare const AzureOpenAILLM: (opts?: AzureOpenAILLMOptions) => AzureOpenAILLM; export {};