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
+6
View File
@@ -584,6 +584,12 @@ describe("lib/graph/orchestrator startCase", () => {
expect(result.success).toBe(true);
expect(result.selectedQuestion?.nodeId).toBe("n-commercial-value");
expect(result.newActiveUnknownNodeId).toBe("n-commercial-value");
expect(result.selectedQuestion?.question).not.toBe(
"How should commercial value be defined for this decision?",
);
expect(result.selectedQuestion?.question.toLowerCase()).not.toContain(
"how should uncertainty regarding",
);
});
it("deterministically prioritises customer value over pricing follow-up", async () => {