Harden conversation replies and prioritize newest candidates
This commit is contained in:
1 parent
f98c5c732d
commit
b8e4a1bb88
23 files changed
+598
-113
No files matched your search
@@ -15,6 +15,25 @@ describe('conversation outcome classification', () => {
|
||||
expect(classifyConversationOutcome('That sounds fun, tell me more', {
|
||||
messageCount: 4,
|
||||
reciprocal: true,
|
||||
learningEligible: true,
|
||||
})).toBe('engaged');
|
||||
});
|
||||
|
||||
it('lets a later refusal override earlier reciprocal engagement', () => {
|
||||
expect(classifyConversationOutcome("I'm good", {
|
||||
messageCount: 8,
|
||||
reciprocal: true,
|
||||
learningEligible: true,
|
||||
mediaWasRequested: true,
|
||||
responses: ['Sure, tell me more', 'Zero interest in sending you anything lol', "I'm good"],
|
||||
})).toBe('declined');
|
||||
});
|
||||
|
||||
it('does not promote a positive reciprocal thread while automation is active', () => {
|
||||
expect(classifyConversationOutcome('Sure, tell me more', {
|
||||
messageCount: 4,
|
||||
reciprocal: true,
|
||||
learningEligible: false,
|
||||
})).toBe('unknown');
|
||||
});
|
||||
});
|
||||
Reference in new issue
Block a user