diff --git a/frontend/src/features/agents/components/drilldown/EvaluationPanel.js b/frontend/src/features/agents/components/drilldown/EvaluationPanel.js index 39b5e25..f81423f 100644 --- a/frontend/src/features/agents/components/drilldown/EvaluationPanel.js +++ b/frontend/src/features/agents/components/drilldown/EvaluationPanel.js @@ -1,23 +1,24 @@ import React from 'react'; +import ReactMarkdown from 'react-markdown'; -const EvaluationPanel = ({ - chatHistory, - selectedAuditId, - setSelectedAuditId, - feedbackContent, - rubricContent, - historyLog, - coworkerContent, - setCoworkerContent, - handleSaveGroundTruth, - savingGroundTruth, +const EvaluationPanel = ({ + chatHistory, + selectedAuditId, + setSelectedAuditId, + feedbackContent, + rubricContent, + historyLog, + coworkerContent, + setCoworkerContent, + handleSaveGroundTruth, + savingGroundTruth, editConfig, fetchData, agent }) => { const messagesWithAudit = chatHistory.filter(m => m.message_metadata?.evaluation && !m.isUser); const selectedMessage = selectedAuditId ? chatHistory.find(m => m.id === selectedAuditId) : null; - + const displayFeedback = selectedMessage ? selectedMessage.message_metadata.evaluation.feedback : feedbackContent; const displayRubric = selectedMessage ? selectedMessage.message_metadata.evaluation.rubric : rubricContent; const displayHistory = selectedMessage ? selectedMessage.message_metadata.evaluation.history : historyLog; @@ -29,13 +30,13 @@
Audit Mode
- -