import { LLM } from '../../agents/providers.js'; import type { CometAPILLMModel } from './models.js'; /** Configuration options for the {@link CometAPILLM} provider. */ export type CometAPILLMOptions = { /** CometAPI key. Falls back to the `COMETAPI_API_KEY` env var. */ apiKey?: string; /** Model ID. Default: `'gpt-4o-mini'`. */ model?: CometAPILLMModel | string; /** Override the API base URL. Falls back to the `COMETAPI_BASE_URL` env var, then `null`. */ baseUrl?: string | null; /** Sampling temperature. Default: `0.7`. */ temperature?: number; /** Maximum number of completion tokens to generate. Default: `1024`. */ maxCompletionTokens?: number; /** Tool-selection strategy, e.g. `'auto'`, `'none'`. Default: `'auto'`. */ toolChoice?: string | null; /** 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. Default: `null`. */ stop?: string | null; /** Opaque end-user identifier. Default: `null`. */ user?: 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; }; declare class CometAPILLMImpl extends LLM { static readonly displayName = "CometAPILLM"; _providerName: string; apiKey?: string; model: string; baseUrl: string | null; temperature: number; maxOutputTokens: number; toolChoice: string | null; topP: number | null; frequencyPenalty: number | null; presencePenalty: number | null; seed: number | null; stop: string | null; user: string | null; parallelToolCalls: boolean | null; responseFormat: Record | null; constructor(opts?: CometAPILLMOptions); getRuntimeConfig(): Record; } export type CometAPILLM = CometAPILLMImpl; /** * CometAPI large language model provider (OpenAI-compatible gateway). * * Creates a configured CometAPI LLM provider for use in a voice agent. */ export declare const CometAPILLM: (opts?: CometAPILLMOptions) => CometAPILLM; export {};