@dataclouder/ngx-agent-cards 0.1.95 → 0.1.96
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -2905,7 +2905,8 @@ ${task.task}
|
|
|
2905
2905
|
resetScore() {
|
|
2906
2906
|
this.conversationFlowStateService.updateGoalState({ value: 0 });
|
|
2907
2907
|
}
|
|
2908
|
-
async
|
|
2908
|
+
async analyzePerformance(customPrompt) {
|
|
2909
|
+
debugger;
|
|
2909
2910
|
console.log('Analylizing performance...');
|
|
2910
2911
|
const MIN_MESSAGES_EVALUATE = 6;
|
|
2911
2912
|
const conversationMessages = this.contextEngineService.getContextMessages(ContextType.AllConversation);
|
|
@@ -5070,7 +5071,7 @@ class DCChatComponent {
|
|
|
5070
5071
|
// Ensure the microphone is stopped when the chat component is destroyed
|
|
5071
5072
|
this.chatFooterComponent?.stopMic();
|
|
5072
5073
|
// this.conversationFlow?.performancePrompt;
|
|
5073
|
-
this.evaluationService.
|
|
5074
|
+
this.evaluationService.analyzePerformance(this.conversationFlow?.performancePrompt).then(performanceEvaluation => {
|
|
5074
5075
|
this.conversationService.persistCurrentSession(ConversationStatus.Completed, { performanceEvaluation });
|
|
5075
5076
|
});
|
|
5076
5077
|
this.evaluationService.resetEvaluation();
|