feat: enhance event consumption logic and add success reply handling
This commit is contained in:
@@ -29,3 +29,13 @@ func TestHandoffGraphBuildReasonFallback(t *testing.T) {
|
||||
t.Fatalf("unexpected fallback reason: %q", reason)
|
||||
}
|
||||
}
|
||||
|
||||
func TestHandoffGraphBuildSuccessReply(t *testing.T) {
|
||||
graph := NewHandoffGraph(&models.Conversation{ID: 1}, &models.AIAgent{Name: "AI"})
|
||||
|
||||
got := graph.buildSuccessReply()
|
||||
want := "已为你转接人工客服,请稍候。,请稍候。"
|
||||
if got != want {
|
||||
t.Fatalf("unexpected success reply: %q", got)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user