Files
openclaw/src/commitments/model-selection.runtime.ts
2026-06-04 03:46:55 -04:00

13 lines
557 B
TypeScript

// Resolves model choices for commitment extraction and follow-up checks.
import { resolveDefaultModelForAgent } from "../agents/model-selection.js";
import type { OpenClawConfig } from "../config/config.js";
// Lazy runtime seam for commitment extraction model selection. Keeps the
// background extraction runtime from loading model-selection code until needed.
export function resolveCommitmentDefaultModelRef(params: {
cfg: OpenClawConfig;
agentId?: string;
}): { provider: string; model: string } {
return resolveDefaultModelForAgent(params);
}