Skip to content

Commit 0441ea5

Browse files
authored
Use the old API for referencing evaluators, non-breaking (#1257)
1 parent f47a4a8 commit 0441ea5

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

genkit-tools/cli/src/commands/eval-flow.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,9 +93,12 @@ export const evalFlow = new Command('eval:flow')
9393
if (!options.evaluators) {
9494
evaluatorActions = await getAllEvaluatorActions(manager);
9595
} else {
96+
const evalActionKeys = options.evaluators
97+
.split(',')
98+
.map((k) => `/evaluator/${k}`);
9699
evaluatorActions = await getMatchingEvaluatorActions(
97100
manager,
98-
options.evaluators.split(',')
101+
evalActionKeys
99102
);
100103
}
101104
logger.debug(

genkit-tools/cli/src/commands/eval-run.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,12 @@ export const evalRun = new Command('eval:run')
7171
if (!options.evaluators) {
7272
evaluatorActions = await getAllEvaluatorActions(manager);
7373
} else {
74+
const evalActionKeys = options.evaluators
75+
.split(',')
76+
.map((k) => `/evaluator/${k}`);
7477
evaluatorActions = await getMatchingEvaluatorActions(
7578
manager,
76-
options.evaluators.split(',')
79+
evalActionKeys
7780
);
7881
}
7982
logger.info(

0 commit comments

Comments
 (0)