UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

34 lines (33 loc) • 1.07 kB
import { c as resolveCliRuntimeExecutionProvider } from "./model-runtime-aliases-DZy9Ea2c.mjs"; //#region src/cron/isolated-agent/candidate-execution.ts /** * Resolves where a candidate runs: a compatible session runtime override first, then the * config's runtime policy. Inference capture and every scheduled run call this, so a job's * captured runtime is the one its run selects for the same inputs. */ function resolveCronCandidateExecution(e, t) { const { cfg: n, provider: r, model: i, sessionRuntimeOverride: a } = e; const o = a ? t.isCliProvider(a, n) ? a : r : resolveCliRuntimeExecutionProvider({ provider: r, cfg: n, agentId: e.agentId, modelId: i, authProfileId: e.authProfileId }) ?? r; const s = a ?? t.resolveEffectiveAgentRuntime({ cfg: n, provider: r, modelId: i, agentId: e.agentId, sessionKey: e.sessionKey, sessionEntry: e.sessionEntry }); return { sessionRuntimeOverride: a, executionProvider: o, cliExecution: t.isCliProvider(o, n), runtime: s }; } //#endregion export { resolveCronCandidateExecution as t };