fix: update answer aggregation logic in agent and clean up reducer logging

This commit is contained in:
Han Xiao 2025-06-12 19:39:14 -07:00
parent 7621f589b2
commit e8b99a5889
2 changed files with 2 additions and 2 deletions

View File

@ -1086,7 +1086,7 @@ But unfortunately, you failed to solve the issue. You need to think out of the b
}
}
} else if (answerStep.isAggregated) {
answerStep.answer = await reduceAnswers(candidateAnswers, context, SchemaGen);
answerStep.answer = candidateAnswers.join('\n\n'); // await reduceAnswers(candidateAnswers, context, SchemaGen);
answerStep.mdAnswer = repairMarkdownFootnotesOuter(buildMdFromAnswer(answerStep));
}

View File

@ -2,7 +2,7 @@ import { PromptPair, TrackerContext } from '../types';
import { getModel } from "../config";
import { generateText } from "ai";
import { Schemas } from "../utils/schemas";
import { logInfo, logError, logDebug, logWarning } from '../logging';
import { logError, logDebug, logWarning } from '../logging';
function getPrompt(answers: string[]): PromptPair {