openclaw
Version:
Multi-channel AI gateway with extensible messaging integrations
3 lines • 677 B
JavaScript
import{c as resolveCliRuntimeExecutionProvider}from"./model-runtime-aliases-BFQ__k4Y.mjs";
//!src/cron/isolated-agent/candidate-execution.ts
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}}export{resolveCronCandidateExecution as t};