99 assertValidModelName ,
1010 LlmGenerateFilesContext ,
1111 LlmGenerateFilesResponse ,
12- LlmRunner ,
1312} from '../codegen/llm-runner.js' ;
1413import {
1514 DEFAULT_AUTORATER_MODEL_NAME ,
@@ -54,9 +53,8 @@ import { UserFacingError } from '../utils/errors.js';
5453import { getRunGroupId } from './grouping.js' ;
5554import { executeCommand } from '../utils/exec.js' ;
5655import { EvalID , Gateway } from './gateway.js' ;
57- import { LocalGateway } from './gateways/local_gateway.js' ;
5856import { LocalEnvironment } from '../configuration/environment-local.js' ;
59- import { RunnerName } from '../codegen/runner-creation.js' ;
57+ import { getRunnerByName , RunnerName } from '../codegen/runner-creation.js' ;
6058
6159/**
6260 * Orchestrates the entire assessment process for each prompt defined in the `prompts` array.
@@ -71,7 +69,6 @@ import { RunnerName } from '../codegen/runner-creation.js';
7169 * each containing the prompt, generated code, and final validation status.
7270 */
7371export async function generateCodeAndAssess ( options : {
74- ratingLlm : GenkitRunner ;
7572 model : string ;
7673 runner : RunnerName ;
7774 environmentConfigPath : string ;
@@ -96,6 +93,7 @@ export async function generateCodeAndAssess(options: {
9693 options . environmentConfigPath ,
9794 options . runner
9895 ) ;
96+ const ratingLlm = await getRunnerByName ( 'genkit' ) ;
9997
10098 // TODO(devversion): Consider validating model names also for remote environments.
10199 if ( env instanceof LocalEnvironment ) {
@@ -179,7 +177,7 @@ export async function generateCodeAndAssess(options: {
179177 evalID ,
180178 env ,
181179 env . gateway ,
182- options . ratingLlm ,
180+ ratingLlm ,
183181 options . model ,
184182 rootPromptDef ,
185183 options . localMode ,
@@ -254,7 +252,7 @@ export async function generateCodeAndAssess(options: {
254252 const timestamp = new Date ( ) ;
255253 const details = {
256254 summary : await prepareSummary (
257- options . ratingLlm ,
255+ ratingLlm ,
258256 new AbortController ( ) . signal , // Note: AI summarization is currently not abortable.
259257 options . model ,
260258 env ,
0 commit comments