UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

56 lines 2.45 kB
import { r as OpenClawConfig } from "./types.openclaw-BdCLfP4c.js"; import { n as ThinkLevel } from "./thinking.shared-CNN7g0o3.js"; import { a as ModelManifestNormalizationContext, o as ModelRef, s as ModelCatalogEntry } from "./model-selection-shared-Cd2NqtMF.js"; //#region src/agents/model-selection-config.d.ts declare function resolveDefaultModelForAgent(params: { cfg: OpenClawConfig; agentId?: string; allowManifestNormalization?: boolean; allowPluginNormalization?: boolean; } & ModelManifestNormalizationContext): ModelRef; //#endregion //#region src/agents/model-selection-normalize.d.ts type ModelRefNormalizeOptions = ModelManifestNormalizationContext & { allowManifestNormalization?: boolean; allowPluginNormalization?: boolean; }; /** Find a provider value by normalized provider ID. */ declare function findNormalizedProviderValue<T>(entries: Record<string, T> | undefined, provider: string): T | undefined; /** Parse `provider/model` or bare model text using a default provider. */ declare function parseModelRef(raw: string, defaultProvider: string, options?: ModelRefNormalizeOptions): ModelRef | null; //#endregion //#region src/agents/model-selection-resolve.d.ts /** Resolves a raw model string into an allowed model ref or an explanatory error. */ declare function resolveAllowedModelRefCore(params: { cfg: OpenClawConfig; catalog: ModelCatalogEntry[]; raw: string; defaultProvider: string; defaultModel?: string; agentId?: string; } & ModelManifestNormalizationContext): { ref: ModelRef; key: string; } | { error: string; }; //#endregion //#region src/agents/model-thinking-default.d.ts /** Resolves the default thinking level for a provider/model pair. */ declare function resolveThinkingDefault(params: { cfg: OpenClawConfig; provider: string; model: string; catalog?: ModelCatalogEntry[]; agentRuntime?: string | null; }): ThinkLevel; /** Resolves thinking default after loading runtime catalog only when needed. */ declare function resolveThinkingDefaultWithRuntimeCatalogCore(params: { cfg: OpenClawConfig; provider: string; model: string; loadRuntimeCatalog: () => Promise<ModelCatalogEntry[]>; agentRuntime?: string | null; }): Promise<ThinkLevel>; //#endregion export { parseModelRef as a, findNormalizedProviderValue as i, resolveThinkingDefaultWithRuntimeCatalogCore as n, resolveDefaultModelForAgent as o, resolveAllowedModelRefCore as r, resolveThinkingDefault as t };