/** * Every reasoning-effort / thinking-level value surfaced by any agent-host * provider, ordered from least to most effort. * * Consumers that need to recognize *any* advertised tier — notably the Copilot * launcher's `isCopilotReasoningEffort`, which decides what the model picker * offers — must derive from this list rather than repeat it. A private copy * silently drops newly-added tiers from the picker (see the missing `'max'` in * https://github.com/microsoft/vscode/pull/329167), and a `satisfies` check * does not prevent that: it only verifies each entry is a valid level, not that * every level is present. */ export declare const reasoningEffortLevels: readonly [ "none", "minimal", "low", "medium", "high", "xhigh", "max", "ultra" ]; export declare const ReasoningEffortConfigKey = "thinkingLevel"; /** * Union of every reasoning-effort / thinking-level value surfaced by any * agent-host provider. Individual providers expose a subset: * - Codex: model-dependent, currently up to `'ultra'` * - Copilot / Claude: model-dependent, currently up to `'max'` * * The label/description helpers below are the single source of truth for * the localized picker strings so every provider renders the same value * consistently. */ export type ReasoningEffortLevel = typeof reasoningEffortLevels[number]; /** * Narrows an arbitrary string to a recognized {@link ReasoningEffortLevel}. * Derives from {@link reasoningEffortLevels} so newly-added tiers are never * silently dropped by a private allowlist. */ export declare function isReasoningEffortLevel(value: string | undefined): value is ReasoningEffortLevel; /** * Localized, title-cased picker label for a reasoning-effort value. * Falls back to capitalizing an unrecognized value so a newly-introduced * effort tier never surfaces raw (e.g. lowercase `'max'`). */ export declare function getReasoningEffortLabel(level: string): string; /** * Localized description for a reasoning-effort value, shown beneath the * label in the picker. Returns `undefined` for an unrecognized value so * callers can omit the description rather than show an empty string. * * Wording mirrors the canonical extension helper `getReasoningEffortDescription` * in `extensions/copilot/src/extension/conversation/common/languageModelAccess.ts` * so every provider surfaces the same descriptions. */ export declare function getReasoningEffortDescription(level: string): string | undefined; /** * Resolve the default reasoning effort for a model so the picker never renders an * `undefined` selection. Prefers the declared default, then `'medium'` for Claude Opus/Haiku 5.5, * `'high'` for other Claude/Kimi K3 models and `'medium'` otherwise, then the first supported level. * Mirrors the Copilot extension's `pickDefaultReasoningEffort`. */ export declare function resolveDefaultReasoningEffort(supportedEfforts: readonly string[] | undefined, declaredDefault?: string, modelId?: string): string | undefined;