Fix build
This commit is contained in:
committed by
pullfrog[bot]
parent
fa01f9c06d
commit
7369e952e4
@@ -137974,8 +137974,12 @@ function resolveAgent(params) {
|
||||
if (!agent3) {
|
||||
throw new Error(`invalid agent name: ${configuredAgentName}`);
|
||||
}
|
||||
const isExplicitOverride = agentOverride !== void 0 || params.payload.agent !== void 0;
|
||||
if (isExplicitOverride || agentHasApiKeys(agent3)) {
|
||||
const isExplicitOverride = agentOverride !== void 0 || params.payload.agent !== null;
|
||||
if (isExplicitOverride) {
|
||||
log.info(`\xBB selected configured agent: ${agent3.name}`);
|
||||
return agent3;
|
||||
}
|
||||
if (agentHasApiKeys(agent3)) {
|
||||
log.info(`\xBB selected configured agent: ${agent3.name}`);
|
||||
return agent3;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user