openclaw
Version:
Multi-channel AI gateway with extensible messaging integrations
54 lines • 1.99 kB
TypeScript
import "./agent-harness-runtime-CZIVRpx-.js";
import { r as OpenClawConfig } from "./types.openclaw-BdCLfP4c.js";
import { i as ReplyPayload } from "./reply-payload-BE6d057B.js";
import { c as SessionEntry } from "./types-DeuBjaEd.js";
import "./templating-CpgmHvb9.js";
import "./model-catalog-CFrq7UMF.js";
import "./sessions-50ndZyDQ.js";
import { s as ModelCatalogEntry } from "./model-selection-shared-Cd2NqtMF.js";
//#region src/auto-reply/reply/commands-models.d.ts
type ModelsCommandSessionEntry = Partial<Pick<SessionEntry, "authProfileOverride" | "modelProvider" | "model">>;
type ModelsProviderData = {
byProvider: Map<string, Set<string>>;
providers: string[];
resolvedDefault: {
provider: string;
model: string;
};
modelNames: Map<string, string>;
runtimeChoicesByProvider?: Map<string, ModelsRuntimeChoice[]>;
};
type PreparedModelsProviderData = ModelsProviderData & {
modelCatalog: ModelCatalogEntry[];
};
type ModelsBrowseOptions = {
view?: "default" | "all";
workspaceDir?: string;
};
type ModelsRuntimeChoice = {
id: string;
label: string;
description: string;
};
declare function buildPreparedModelsProviderData(cfg: OpenClawConfig, agentId?: string, options?: ModelsBrowseOptions): Promise<PreparedModelsProviderData>;
declare function formatModelsAvailableHeader(params: {
provider: string;
total: number;
cfg: OpenClawConfig;
agentId?: string;
agentDir?: string;
workspaceDir?: string;
sessionEntry?: ModelsCommandSessionEntry;
}): string;
declare function resolveModelsCommandReply(params: {
cfg: OpenClawConfig;
commandBodyNormalized: string;
surface?: string;
currentModel?: string;
agentId?: string;
agentDir?: string;
workspaceDir?: string;
sessionEntry?: ModelsCommandSessionEntry;
}): Promise<ReplyPayload | null>;
//#endregion
export { resolveModelsCommandReply as a, formatModelsAvailableHeader as i, ModelsRuntimeChoice as n, buildPreparedModelsProviderData as r, ModelsProviderData as t };