@llumiverse/common
Version:
Public types, enums and options used by Llumiverse API.
50 lines • 2.44 kB
TypeScript
/**
* Shared Claude option builders used by multiple providers (Bedrock, VertexAI, …).
*
* Centralising these helpers means a single edit propagates to all drivers, and
* the per-provider files stay focused on provider-specific concerns (base options,
* max-tokens limits for non-Claude models, etc.).
*/
import { type ModelOptionInfoItem } from "../types.js";
/**
* Canonical max output-tokens limit for Claude models, shared by all providers.
*
* - Claude 3.7: 128 K (all providers support extended output)
* - Claude Opus 4.7+: 128 K
* - All others: delegated to {@link getMaxOutputTokens}
*/
export declare function getClaudeMaxTokensLimit(model: string): number;
/** cache_enabled toggle — identical across providers. */
export declare function buildClaudeCacheOptions(): ModelOptionInfoItem[];
/**
* cache_ttl selector — only shown when caching is enabled.
* Pass `option?.cache_enabled` from the current saved options.
*/
export declare function buildClaudeCacheTtlOptions(cacheEnabled?: boolean): ModelOptionInfoItem[];
/**
* Effort selector — shown only for models that support it (Opus 4.5+, Sonnet 4.6+, all 4.7+).
* Returns an empty array for unsupported models.
*/
export declare function buildClaudeEffortOptions(model: string): ModelOptionInfoItem[];
/**
* Thinking budget option — shown for non-adaptive Claude thinking models (3.7, 4.5).
* Setting this enables extended thinking with the given token budget.
*
* Returns an empty array for models that don't support extended thinking or that
* use adaptive thinking instead (where effort is the control knob).
*/
export declare function buildClaudeThinkingBudgetOption(model: string): ModelOptionInfoItem[];
/**
* include_thoughts display toggle — shown for all Claude thinking-capable models.
* Controls whether thinking content is returned in the response.
* This does not enable thinking; set thinking_budget_tokens (extended) or effort (adaptive).
*
* Returns an empty array for models with no thinking support.
*/
export declare function buildClaudeIncludeThoughtsOption(model: string): ModelOptionInfoItem[];
/**
* @deprecated Use buildClaudeThinkingBudgetOption and buildClaudeIncludeThoughtsOption separately.
* Kept for backwards compatibility — delegates to the two new helpers.
*/
export declare function buildClaudeThinkingOptions(model: string): ModelOptionInfoItem[];
//# sourceMappingURL=shared-parsing.d.ts.map