feat: formulate follow-up questions from graph context

This commit is contained in:
2026-08-02 12:47:34 +01:00
parent 4affadab4b
commit 48ce66dddb
5 changed files with 581 additions and 10 deletions
+7 -2
View File
@@ -547,8 +547,13 @@ describe("applyValidatedProposal", () => {
).toBe(true);
expect(result.newActiveUnknownNodeId).toBe("n-commercial-value");
expect(result.selectedQuestion?.nodeId).toBe("n-commercial-value");
expect(result.selectedQuestion?.question).toContain(
"Commercial value definition",
expect(result.selectedQuestion?.question).toMatch(/\?$/);
expect(result.selectedQuestion?.question.length).toBeGreaterThan(20);
expect(result.selectedQuestion?.question.toLowerCase()).not.toContain(
"price",
);
expect(result.selectedQuestion?.question.toLowerCase()).not.toContain(
"how should uncertainty regarding",
);
});