@@ -59,6 +59,7 @@ def create(
5959 query_identifier : Optional [str ] | NotGiven = NOT_GIVEN ,
6060 response_identifier : Optional [str ] | NotGiven = NOT_GIVEN ,
6161 should_escalate : bool | NotGiven = NOT_GIVEN ,
62+ should_guardrail : bool | NotGiven = NOT_GIVEN ,
6263 threshold : float | NotGiven = NOT_GIVEN ,
6364 threshold_direction : Literal ["above" , "below" ] | NotGiven = NOT_GIVEN ,
6465 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -95,8 +96,10 @@ def create(
9596 response_identifier: The exact string used in your evaluation criteria to reference the RAG/LLM
9697 response.
9798
98- should_escalate: If true, failing this eval means the response is considered bad and can trigger
99- escalation to Codex/SME
99+ should_escalate: If true, failing this eval means the question should be escalated to Codex for
100+ an SME to review
101+
102+ should_guardrail: If true, failing this eval means the response should be guardrailed
100103
101104 threshold: Threshold value that determines if the evaluation fails
102105
@@ -126,6 +129,7 @@ def create(
126129 "query_identifier" : query_identifier ,
127130 "response_identifier" : response_identifier ,
128131 "should_escalate" : should_escalate ,
132+ "should_guardrail" : should_guardrail ,
129133 "threshold" : threshold ,
130134 "threshold_direction" : threshold_direction ,
131135 },
@@ -153,6 +157,7 @@ def update(
153157 query_identifier : Optional [str ] | NotGiven = NOT_GIVEN ,
154158 response_identifier : Optional [str ] | NotGiven = NOT_GIVEN ,
155159 should_escalate : bool | NotGiven = NOT_GIVEN ,
160+ should_guardrail : bool | NotGiven = NOT_GIVEN ,
156161 threshold : float | NotGiven = NOT_GIVEN ,
157162 threshold_direction : Literal ["above" , "below" ] | NotGiven = NOT_GIVEN ,
158163 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -189,8 +194,10 @@ def update(
189194 response_identifier: The exact string used in your evaluation criteria to reference the RAG/LLM
190195 response.
191196
192- should_escalate: If true, failing this eval means the response is considered bad and can trigger
193- escalation to Codex/SME
197+ should_escalate: If true, failing this eval means the question should be escalated to Codex for
198+ an SME to review
199+
200+ should_guardrail: If true, failing this eval means the response should be guardrailed
194201
195202 threshold: Threshold value that determines if the evaluation fails
196203
@@ -216,6 +223,7 @@ def update(
216223 enabled : bool | NotGiven = NOT_GIVEN ,
217224 priority : Optional [int ] | NotGiven = NOT_GIVEN ,
218225 should_escalate : bool | NotGiven = NOT_GIVEN ,
226+ should_guardrail : bool | NotGiven = NOT_GIVEN ,
219227 threshold : float | NotGiven = NOT_GIVEN ,
220228 threshold_direction : Literal ["above" , "below" ] | NotGiven = NOT_GIVEN ,
221229 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -237,8 +245,10 @@ def update(
237245 priority: Priority order for evals (lower number = higher priority) to determine primary
238246 eval issue to surface
239247
240- should_escalate: If true, failing this eval means the response is considered bad and can trigger
241- escalation to Codex/SME
248+ should_escalate: If true, failing this eval means the question should be escalated to Codex for
249+ an SME to review
250+
251+ should_guardrail: If true, failing this eval means the response should be guardrailed
242252
243253 threshold: Threshold value that determines if the evaluation fails
244254
@@ -270,6 +280,7 @@ def update(
270280 query_identifier : Optional [str ] | NotGiven = NOT_GIVEN ,
271281 response_identifier : Optional [str ] | NotGiven = NOT_GIVEN ,
272282 should_escalate : bool | NotGiven = NOT_GIVEN ,
283+ should_guardrail : bool | NotGiven = NOT_GIVEN ,
273284 threshold : float | NotGiven = NOT_GIVEN ,
274285 threshold_direction : Literal ["above" , "below" ] | NotGiven = NOT_GIVEN ,
275286 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -297,6 +308,7 @@ def update(
297308 "query_identifier" : query_identifier ,
298309 "response_identifier" : response_identifier ,
299310 "should_escalate" : should_escalate ,
311+ "should_guardrail" : should_guardrail ,
300312 "threshold" : threshold ,
301313 "threshold_direction" : threshold_direction ,
302314 },
@@ -412,6 +424,7 @@ async def create(
412424 query_identifier : Optional [str ] | NotGiven = NOT_GIVEN ,
413425 response_identifier : Optional [str ] | NotGiven = NOT_GIVEN ,
414426 should_escalate : bool | NotGiven = NOT_GIVEN ,
427+ should_guardrail : bool | NotGiven = NOT_GIVEN ,
415428 threshold : float | NotGiven = NOT_GIVEN ,
416429 threshold_direction : Literal ["above" , "below" ] | NotGiven = NOT_GIVEN ,
417430 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -448,8 +461,10 @@ async def create(
448461 response_identifier: The exact string used in your evaluation criteria to reference the RAG/LLM
449462 response.
450463
451- should_escalate: If true, failing this eval means the response is considered bad and can trigger
452- escalation to Codex/SME
464+ should_escalate: If true, failing this eval means the question should be escalated to Codex for
465+ an SME to review
466+
467+ should_guardrail: If true, failing this eval means the response should be guardrailed
453468
454469 threshold: Threshold value that determines if the evaluation fails
455470
@@ -479,6 +494,7 @@ async def create(
479494 "query_identifier" : query_identifier ,
480495 "response_identifier" : response_identifier ,
481496 "should_escalate" : should_escalate ,
497+ "should_guardrail" : should_guardrail ,
482498 "threshold" : threshold ,
483499 "threshold_direction" : threshold_direction ,
484500 },
@@ -506,6 +522,7 @@ async def update(
506522 query_identifier : Optional [str ] | NotGiven = NOT_GIVEN ,
507523 response_identifier : Optional [str ] | NotGiven = NOT_GIVEN ,
508524 should_escalate : bool | NotGiven = NOT_GIVEN ,
525+ should_guardrail : bool | NotGiven = NOT_GIVEN ,
509526 threshold : float | NotGiven = NOT_GIVEN ,
510527 threshold_direction : Literal ["above" , "below" ] | NotGiven = NOT_GIVEN ,
511528 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -542,8 +559,10 @@ async def update(
542559 response_identifier: The exact string used in your evaluation criteria to reference the RAG/LLM
543560 response.
544561
545- should_escalate: If true, failing this eval means the response is considered bad and can trigger
546- escalation to Codex/SME
562+ should_escalate: If true, failing this eval means the question should be escalated to Codex for
563+ an SME to review
564+
565+ should_guardrail: If true, failing this eval means the response should be guardrailed
547566
548567 threshold: Threshold value that determines if the evaluation fails
549568
@@ -569,6 +588,7 @@ async def update(
569588 enabled : bool | NotGiven = NOT_GIVEN ,
570589 priority : Optional [int ] | NotGiven = NOT_GIVEN ,
571590 should_escalate : bool | NotGiven = NOT_GIVEN ,
591+ should_guardrail : bool | NotGiven = NOT_GIVEN ,
572592 threshold : float | NotGiven = NOT_GIVEN ,
573593 threshold_direction : Literal ["above" , "below" ] | NotGiven = NOT_GIVEN ,
574594 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -590,8 +610,10 @@ async def update(
590610 priority: Priority order for evals (lower number = higher priority) to determine primary
591611 eval issue to surface
592612
593- should_escalate: If true, failing this eval means the response is considered bad and can trigger
594- escalation to Codex/SME
613+ should_escalate: If true, failing this eval means the question should be escalated to Codex for
614+ an SME to review
615+
616+ should_guardrail: If true, failing this eval means the response should be guardrailed
595617
596618 threshold: Threshold value that determines if the evaluation fails
597619
@@ -623,6 +645,7 @@ async def update(
623645 query_identifier : Optional [str ] | NotGiven = NOT_GIVEN ,
624646 response_identifier : Optional [str ] | NotGiven = NOT_GIVEN ,
625647 should_escalate : bool | NotGiven = NOT_GIVEN ,
648+ should_guardrail : bool | NotGiven = NOT_GIVEN ,
626649 threshold : float | NotGiven = NOT_GIVEN ,
627650 threshold_direction : Literal ["above" , "below" ] | NotGiven = NOT_GIVEN ,
628651 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -650,6 +673,7 @@ async def update(
650673 "query_identifier" : query_identifier ,
651674 "response_identifier" : response_identifier ,
652675 "should_escalate" : should_escalate ,
676+ "should_guardrail" : should_guardrail ,
653677 "threshold" : threshold ,
654678 "threshold_direction" : threshold_direction ,
655679 },
0 commit comments