2
2
3
3
from __future__ import annotations
4
4
5
- from typing import Optional
5
+ from typing import List , Optional
6
6
from typing_extensions import Literal
7
7
8
8
import httpx
@@ -47,11 +47,21 @@ def create(
47
47
* ,
48
48
evaluation_id : str ,
49
49
json_path : Optional [str ],
50
- target_value : Optional [str ],
50
+ target_threshold : Optional [float ],
51
+ target_values : Optional [List [str ]],
51
52
tool_name : Optional [str ],
52
53
type : Literal [
53
- "CONTAINS" , "EXACT_MATCH" , "JSON_CONTAINS" , "JSON_EXACT_MATCH" , "TOOL_CALLED" , "TOOL_CALLED_WITH"
54
+ "CONTAINS_ALL" ,
55
+ "CONTAINS_ANY" ,
56
+ "COST" ,
57
+ "EXACT_MATCH" ,
58
+ "LATENCY" ,
59
+ "STARTS_WITH" ,
60
+ "TOOL_CALLED" ,
61
+ "TOOL_CALLED_WITH" ,
54
62
],
63
+ ignore_case : bool | NotGiven = NOT_GIVEN ,
64
+ negate : bool | NotGiven = NOT_GIVEN ,
55
65
weight : float | NotGiven = NOT_GIVEN ,
56
66
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
57
67
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -88,9 +98,12 @@ def create(
88
98
{
89
99
"evaluation_id" : evaluation_id ,
90
100
"json_path" : json_path ,
91
- "target_value" : target_value ,
101
+ "target_threshold" : target_threshold ,
102
+ "target_values" : target_values ,
92
103
"tool_name" : tool_name ,
93
104
"type" : type ,
105
+ "ignore_case" : ignore_case ,
106
+ "negate" : negate ,
94
107
"weight" : weight ,
95
108
},
96
109
evaluation_assertion_create_params .EvaluationAssertionCreateParams ,
@@ -107,11 +120,21 @@ def update(
107
120
* ,
108
121
evaluation_id : str ,
109
122
json_path : Optional [str ],
110
- target_value : Optional [str ],
123
+ target_threshold : Optional [float ],
124
+ target_values : Optional [List [str ]],
111
125
tool_name : Optional [str ],
112
126
type : Literal [
113
- "CONTAINS" , "EXACT_MATCH" , "JSON_CONTAINS" , "JSON_EXACT_MATCH" , "TOOL_CALLED" , "TOOL_CALLED_WITH"
127
+ "CONTAINS_ALL" ,
128
+ "CONTAINS_ANY" ,
129
+ "COST" ,
130
+ "EXACT_MATCH" ,
131
+ "LATENCY" ,
132
+ "STARTS_WITH" ,
133
+ "TOOL_CALLED" ,
134
+ "TOOL_CALLED_WITH" ,
114
135
],
136
+ ignore_case : bool | NotGiven = NOT_GIVEN ,
137
+ negate : bool | NotGiven = NOT_GIVEN ,
115
138
weight : float | NotGiven = NOT_GIVEN ,
116
139
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
117
140
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -150,9 +173,12 @@ def update(
150
173
{
151
174
"evaluation_id" : evaluation_id ,
152
175
"json_path" : json_path ,
153
- "target_value" : target_value ,
176
+ "target_threshold" : target_threshold ,
177
+ "target_values" : target_values ,
154
178
"tool_name" : tool_name ,
155
179
"type" : type ,
180
+ "ignore_case" : ignore_case ,
181
+ "negate" : negate ,
156
182
"weight" : weight ,
157
183
},
158
184
evaluation_assertion_update_params .EvaluationAssertionUpdateParams ,
@@ -283,11 +309,21 @@ async def create(
283
309
* ,
284
310
evaluation_id : str ,
285
311
json_path : Optional [str ],
286
- target_value : Optional [str ],
312
+ target_threshold : Optional [float ],
313
+ target_values : Optional [List [str ]],
287
314
tool_name : Optional [str ],
288
315
type : Literal [
289
- "CONTAINS" , "EXACT_MATCH" , "JSON_CONTAINS" , "JSON_EXACT_MATCH" , "TOOL_CALLED" , "TOOL_CALLED_WITH"
316
+ "CONTAINS_ALL" ,
317
+ "CONTAINS_ANY" ,
318
+ "COST" ,
319
+ "EXACT_MATCH" ,
320
+ "LATENCY" ,
321
+ "STARTS_WITH" ,
322
+ "TOOL_CALLED" ,
323
+ "TOOL_CALLED_WITH" ,
290
324
],
325
+ ignore_case : bool | NotGiven = NOT_GIVEN ,
326
+ negate : bool | NotGiven = NOT_GIVEN ,
291
327
weight : float | NotGiven = NOT_GIVEN ,
292
328
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
293
329
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -324,9 +360,12 @@ async def create(
324
360
{
325
361
"evaluation_id" : evaluation_id ,
326
362
"json_path" : json_path ,
327
- "target_value" : target_value ,
363
+ "target_threshold" : target_threshold ,
364
+ "target_values" : target_values ,
328
365
"tool_name" : tool_name ,
329
366
"type" : type ,
367
+ "ignore_case" : ignore_case ,
368
+ "negate" : negate ,
330
369
"weight" : weight ,
331
370
},
332
371
evaluation_assertion_create_params .EvaluationAssertionCreateParams ,
@@ -343,11 +382,21 @@ async def update(
343
382
* ,
344
383
evaluation_id : str ,
345
384
json_path : Optional [str ],
346
- target_value : Optional [str ],
385
+ target_threshold : Optional [float ],
386
+ target_values : Optional [List [str ]],
347
387
tool_name : Optional [str ],
348
388
type : Literal [
349
- "CONTAINS" , "EXACT_MATCH" , "JSON_CONTAINS" , "JSON_EXACT_MATCH" , "TOOL_CALLED" , "TOOL_CALLED_WITH"
389
+ "CONTAINS_ALL" ,
390
+ "CONTAINS_ANY" ,
391
+ "COST" ,
392
+ "EXACT_MATCH" ,
393
+ "LATENCY" ,
394
+ "STARTS_WITH" ,
395
+ "TOOL_CALLED" ,
396
+ "TOOL_CALLED_WITH" ,
350
397
],
398
+ ignore_case : bool | NotGiven = NOT_GIVEN ,
399
+ negate : bool | NotGiven = NOT_GIVEN ,
351
400
weight : float | NotGiven = NOT_GIVEN ,
352
401
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
353
402
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -386,9 +435,12 @@ async def update(
386
435
{
387
436
"evaluation_id" : evaluation_id ,
388
437
"json_path" : json_path ,
389
- "target_value" : target_value ,
438
+ "target_threshold" : target_threshold ,
439
+ "target_values" : target_values ,
390
440
"tool_name" : tool_name ,
391
441
"type" : type ,
442
+ "ignore_case" : ignore_case ,
443
+ "negate" : negate ,
392
444
"weight" : weight ,
393
445
},
394
446
evaluation_assertion_update_params .EvaluationAssertionUpdateParams ,
0 commit comments