feat: formulate follow-up questions from graph context
This commit is contained in:
@@ -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",
|
||||
);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user