Skip to content

Commit

Permalink
Add Custom risk entry to RISK_TYPE_TO_CLASS
Browse files Browse the repository at this point in the history
Signed-off-by: Martín Santillán Cooper <[email protected]>
  • Loading branch information
martinscooper committed Feb 12, 2025
1 parent c0956ef commit 75f99b0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/unitxt/metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -6175,6 +6175,7 @@ def process_input_fields(self, task_data):
RiskType.ASSISTANT_MESSAGE: GraniteGuardianAssistantRisk,
RiskType.RAG: GraniteGuardianRagRisk,
RiskType.AGENTIC: GraniteGuardianAgenticRisk,
RiskType.CUSTOM_RISK: GraniteGuardianCustomRisk,
}

class ExecutionAccuracy(InstanceMetric):
Expand Down

0 comments on commit 75f99b0

Please sign in to comment.