mirror of
https://github.com/jina-ai/node-DeepResearch.git
synced 2026-03-22 15:39:06 +08:00
chore: first commit
This commit is contained in:
@@ -189,6 +189,13 @@ async function getResponse(question: string) {
|
||||
if (action.action === 'answer') {
|
||||
if (currentQuestion === question) {
|
||||
return action; // Exit only for original question's answer not the gap question
|
||||
} else {
|
||||
const contextRecord = JSON.stringify({
|
||||
step,
|
||||
...action,
|
||||
question: currentQuestion
|
||||
});
|
||||
context = `${context}\n${contextRecord}`;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user