mirror of
https://github.com/jina-ai/node-DeepResearch.git
synced 2025-12-26 06:28:56 +08:00
chore: first commit
This commit is contained in:
parent
0389459b1b
commit
701a17e49f
@ -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}`;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user