Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 15 additions & 14 deletions runner/orchestration/generate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -322,23 +322,24 @@ async function startEvaluationTask(
break;
}

const userJourneys = await generateUserJourneysForApp(
ratingLlm,
rootPromptDef.name,
defsToExecute[0].prompt,
initialResponse.files,
abortSignal,
);
const userJourneys = config.enableUserJourneyTesting
? await generateUserJourneysForApp(
ratingLlm,
rootPromptDef.name,
defsToExecute[0].prompt,
initialResponse.files,
abortSignal,
)
: undefined;

// TODO: Only execute the serve command on the "final working attempt".
// TODO: Incorporate usage.
const userJourneyAgentTaskInput: BrowserAgentTaskInput | undefined =
config.enableUserJourneyTesting
? {
userJourneys: userJourneys.result,
appPrompt: defsToExecute[0].prompt,
}
: undefined;
const userJourneyAgentTaskInput: BrowserAgentTaskInput | undefined = userJourneys
? {
userJourneys: userJourneys.result,
appPrompt: defsToExecute[0].prompt,
}
: undefined;

const attemptDetails: AttemptDetails[] = []; // Store details for assessment.json

Expand Down
Loading