@@ -65,7 +65,8 @@ def evaluate(
6565 policy_target : PolicyTarget = PolicyTarget .BOTH ,
6666 topic_scoping_mode : Optional [ModelMode ] = None ,
6767 topic_scoping_multi_turn_mode : bool = False ,
68- topic_scoping_target : Optional [str ] = None ,
68+ topic_scoping_target : PolicyTarget = PolicyTarget .BOTH ,
69+ allowed_topics : Optional [List [str ]] = None ,
6970 ) -> Union [EvaluationResponse , None ]:
7071 """
7172 Evaluates the given input and output pairs.
@@ -111,6 +112,7 @@ def evaluate(
111112 :param topic_scoping_mode: Model mode for topic scoping check (speed/balanced/quality).
112113 :param topic_scoping_multi_turn_mode: Enable multi-turn mode for topic scoping check.
113114 :param topic_scoping_target: Target topic for topic scoping check.
115+ :param allowed_topics: List of allowed topics for topic scoping check.
114116
115117 :return: An EvaluationResponse object containing the evaluation results.
116118 :raises Exception: If an error occurs during the evaluation.
@@ -233,6 +235,7 @@ def evaluate(
233235 topic_scoping_mode = topic_scoping_mode ,
234236 topic_scoping_multi_turn_mode = topic_scoping_multi_turn_mode ,
235237 topic_scoping_target = topic_scoping_target ,
238+ allowed_topics = allowed_topics ,
236239 )
237240
238241 response = requests .post (
0 commit comments