8
8
9
9
import httpx
10
10
11
- from ..._types import NOT_GIVEN , Body , Query , Headers , NotGiven
11
+ from ..._types import NOT_GIVEN , Body , Query , Headers , NotGiven , SequenceNotStr
12
12
from ..._utils import maybe_transform , async_maybe_transform
13
13
from ..._compat import cached_property
14
14
from ..._resource import SyncAPIResource , AsyncAPIResource
@@ -104,13 +104,13 @@ def list(
104
104
created_at_end : Union [str , datetime , None ] | NotGiven = NOT_GIVEN ,
105
105
created_at_start : Union [str , datetime , None ] | NotGiven = NOT_GIVEN ,
106
106
custom_metadata : Optional [str ] | NotGiven = NOT_GIVEN ,
107
- failed_evals : Optional [List [str ]] | NotGiven = NOT_GIVEN ,
107
+ failed_evals : Optional [SequenceNotStr [str ]] | NotGiven = NOT_GIVEN ,
108
108
guardrailed : Optional [bool ] | NotGiven = NOT_GIVEN ,
109
109
has_tool_calls : Optional [bool ] | NotGiven = NOT_GIVEN ,
110
110
limit : int | NotGiven = NOT_GIVEN ,
111
111
offset : int | NotGiven = NOT_GIVEN ,
112
112
order : Literal ["asc" , "desc" ] | NotGiven = NOT_GIVEN ,
113
- passed_evals : Optional [List [str ]] | NotGiven = NOT_GIVEN ,
113
+ passed_evals : Optional [SequenceNotStr [str ]] | NotGiven = NOT_GIVEN ,
114
114
primary_eval_issue : Optional [
115
115
List [Literal ["hallucination" , "search_failure" , "unhelpful" , "difficult_query" , "ungrounded" ]]
116
116
]
@@ -127,7 +127,7 @@ def list(
127
127
]
128
128
]
129
129
| NotGiven = NOT_GIVEN ,
130
- tool_call_names : Optional [List [str ]] | NotGiven = NOT_GIVEN ,
130
+ tool_call_names : Optional [SequenceNotStr [str ]] | NotGiven = NOT_GIVEN ,
131
131
was_cache_hit : Optional [bool ] | NotGiven = NOT_GIVEN ,
132
132
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
133
133
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -248,19 +248,19 @@ def list_by_group(
248
248
created_at_end : Union [str , datetime , None ] | NotGiven = NOT_GIVEN ,
249
249
created_at_start : Union [str , datetime , None ] | NotGiven = NOT_GIVEN ,
250
250
custom_metadata : Optional [str ] | NotGiven = NOT_GIVEN ,
251
- failed_evals : Optional [List [str ]] | NotGiven = NOT_GIVEN ,
251
+ failed_evals : Optional [SequenceNotStr [str ]] | NotGiven = NOT_GIVEN ,
252
252
guardrailed : Optional [bool ] | NotGiven = NOT_GIVEN ,
253
253
has_tool_calls : Optional [bool ] | NotGiven = NOT_GIVEN ,
254
254
limit : int | NotGiven = NOT_GIVEN ,
255
255
needs_review : Optional [bool ] | NotGiven = NOT_GIVEN ,
256
256
offset : int | NotGiven = NOT_GIVEN ,
257
257
order : Literal ["asc" , "desc" ] | NotGiven = NOT_GIVEN ,
258
- passed_evals : Optional [List [str ]] | NotGiven = NOT_GIVEN ,
258
+ passed_evals : Optional [SequenceNotStr [str ]] | NotGiven = NOT_GIVEN ,
259
259
primary_eval_issue : Optional [
260
260
List [Literal ["hallucination" , "search_failure" , "unhelpful" , "difficult_query" , "ungrounded" ]]
261
261
]
262
262
| NotGiven = NOT_GIVEN ,
263
- remediation_ids : List [str ] | NotGiven = NOT_GIVEN ,
263
+ remediation_ids : SequenceNotStr [str ] | NotGiven = NOT_GIVEN ,
264
264
sort : Optional [
265
265
Literal [
266
266
"created_at" ,
@@ -273,7 +273,7 @@ def list_by_group(
273
273
]
274
274
]
275
275
| NotGiven = NOT_GIVEN ,
276
- tool_call_names : Optional [List [str ]] | NotGiven = NOT_GIVEN ,
276
+ tool_call_names : Optional [SequenceNotStr [str ]] | NotGiven = NOT_GIVEN ,
277
277
was_cache_hit : Optional [bool ] | NotGiven = NOT_GIVEN ,
278
278
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
279
279
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -359,21 +359,21 @@ def list_groups(
359
359
created_at_end : Union [str , datetime , None ] | NotGiven = NOT_GIVEN ,
360
360
created_at_start : Union [str , datetime , None ] | NotGiven = NOT_GIVEN ,
361
361
custom_metadata : Optional [str ] | NotGiven = NOT_GIVEN ,
362
- failed_evals : Optional [List [str ]] | NotGiven = NOT_GIVEN ,
362
+ failed_evals : Optional [SequenceNotStr [str ]] | NotGiven = NOT_GIVEN ,
363
363
guardrailed : Optional [bool ] | NotGiven = NOT_GIVEN ,
364
364
has_tool_calls : Optional [bool ] | NotGiven = NOT_GIVEN ,
365
365
limit : int | NotGiven = NOT_GIVEN ,
366
366
needs_review : Optional [bool ] | NotGiven = NOT_GIVEN ,
367
367
offset : int | NotGiven = NOT_GIVEN ,
368
368
order : Literal ["asc" , "desc" ] | NotGiven = NOT_GIVEN ,
369
- passed_evals : Optional [List [str ]] | NotGiven = NOT_GIVEN ,
369
+ passed_evals : Optional [SequenceNotStr [str ]] | NotGiven = NOT_GIVEN ,
370
370
primary_eval_issue : Optional [
371
371
List [Literal ["hallucination" , "search_failure" , "unhelpful" , "difficult_query" , "ungrounded" ]]
372
372
]
373
373
| NotGiven = NOT_GIVEN ,
374
374
sort : Optional [Literal ["created_at" , "primary_eval_issue_score" , "total_count" , "custom_rank" , "impact_score" ]]
375
375
| NotGiven = NOT_GIVEN ,
376
- tool_call_names : Optional [List [str ]] | NotGiven = NOT_GIVEN ,
376
+ tool_call_names : Optional [SequenceNotStr [str ]] | NotGiven = NOT_GIVEN ,
377
377
was_cache_hit : Optional [bool ] | NotGiven = NOT_GIVEN ,
378
378
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
379
379
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -550,13 +550,13 @@ def list(
550
550
created_at_end : Union [str , datetime , None ] | NotGiven = NOT_GIVEN ,
551
551
created_at_start : Union [str , datetime , None ] | NotGiven = NOT_GIVEN ,
552
552
custom_metadata : Optional [str ] | NotGiven = NOT_GIVEN ,
553
- failed_evals : Optional [List [str ]] | NotGiven = NOT_GIVEN ,
553
+ failed_evals : Optional [SequenceNotStr [str ]] | NotGiven = NOT_GIVEN ,
554
554
guardrailed : Optional [bool ] | NotGiven = NOT_GIVEN ,
555
555
has_tool_calls : Optional [bool ] | NotGiven = NOT_GIVEN ,
556
556
limit : int | NotGiven = NOT_GIVEN ,
557
557
offset : int | NotGiven = NOT_GIVEN ,
558
558
order : Literal ["asc" , "desc" ] | NotGiven = NOT_GIVEN ,
559
- passed_evals : Optional [List [str ]] | NotGiven = NOT_GIVEN ,
559
+ passed_evals : Optional [SequenceNotStr [str ]] | NotGiven = NOT_GIVEN ,
560
560
primary_eval_issue : Optional [
561
561
List [Literal ["hallucination" , "search_failure" , "unhelpful" , "difficult_query" , "ungrounded" ]]
562
562
]
@@ -573,7 +573,7 @@ def list(
573
573
]
574
574
]
575
575
| NotGiven = NOT_GIVEN ,
576
- tool_call_names : Optional [List [str ]] | NotGiven = NOT_GIVEN ,
576
+ tool_call_names : Optional [SequenceNotStr [str ]] | NotGiven = NOT_GIVEN ,
577
577
was_cache_hit : Optional [bool ] | NotGiven = NOT_GIVEN ,
578
578
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
579
579
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -696,19 +696,19 @@ async def list_by_group(
696
696
created_at_end : Union [str , datetime , None ] | NotGiven = NOT_GIVEN ,
697
697
created_at_start : Union [str , datetime , None ] | NotGiven = NOT_GIVEN ,
698
698
custom_metadata : Optional [str ] | NotGiven = NOT_GIVEN ,
699
- failed_evals : Optional [List [str ]] | NotGiven = NOT_GIVEN ,
699
+ failed_evals : Optional [SequenceNotStr [str ]] | NotGiven = NOT_GIVEN ,
700
700
guardrailed : Optional [bool ] | NotGiven = NOT_GIVEN ,
701
701
has_tool_calls : Optional [bool ] | NotGiven = NOT_GIVEN ,
702
702
limit : int | NotGiven = NOT_GIVEN ,
703
703
needs_review : Optional [bool ] | NotGiven = NOT_GIVEN ,
704
704
offset : int | NotGiven = NOT_GIVEN ,
705
705
order : Literal ["asc" , "desc" ] | NotGiven = NOT_GIVEN ,
706
- passed_evals : Optional [List [str ]] | NotGiven = NOT_GIVEN ,
706
+ passed_evals : Optional [SequenceNotStr [str ]] | NotGiven = NOT_GIVEN ,
707
707
primary_eval_issue : Optional [
708
708
List [Literal ["hallucination" , "search_failure" , "unhelpful" , "difficult_query" , "ungrounded" ]]
709
709
]
710
710
| NotGiven = NOT_GIVEN ,
711
- remediation_ids : List [str ] | NotGiven = NOT_GIVEN ,
711
+ remediation_ids : SequenceNotStr [str ] | NotGiven = NOT_GIVEN ,
712
712
sort : Optional [
713
713
Literal [
714
714
"created_at" ,
@@ -721,7 +721,7 @@ async def list_by_group(
721
721
]
722
722
]
723
723
| NotGiven = NOT_GIVEN ,
724
- tool_call_names : Optional [List [str ]] | NotGiven = NOT_GIVEN ,
724
+ tool_call_names : Optional [SequenceNotStr [str ]] | NotGiven = NOT_GIVEN ,
725
725
was_cache_hit : Optional [bool ] | NotGiven = NOT_GIVEN ,
726
726
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
727
727
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -807,21 +807,21 @@ def list_groups(
807
807
created_at_end : Union [str , datetime , None ] | NotGiven = NOT_GIVEN ,
808
808
created_at_start : Union [str , datetime , None ] | NotGiven = NOT_GIVEN ,
809
809
custom_metadata : Optional [str ] | NotGiven = NOT_GIVEN ,
810
- failed_evals : Optional [List [str ]] | NotGiven = NOT_GIVEN ,
810
+ failed_evals : Optional [SequenceNotStr [str ]] | NotGiven = NOT_GIVEN ,
811
811
guardrailed : Optional [bool ] | NotGiven = NOT_GIVEN ,
812
812
has_tool_calls : Optional [bool ] | NotGiven = NOT_GIVEN ,
813
813
limit : int | NotGiven = NOT_GIVEN ,
814
814
needs_review : Optional [bool ] | NotGiven = NOT_GIVEN ,
815
815
offset : int | NotGiven = NOT_GIVEN ,
816
816
order : Literal ["asc" , "desc" ] | NotGiven = NOT_GIVEN ,
817
- passed_evals : Optional [List [str ]] | NotGiven = NOT_GIVEN ,
817
+ passed_evals : Optional [SequenceNotStr [str ]] | NotGiven = NOT_GIVEN ,
818
818
primary_eval_issue : Optional [
819
819
List [Literal ["hallucination" , "search_failure" , "unhelpful" , "difficult_query" , "ungrounded" ]]
820
820
]
821
821
| NotGiven = NOT_GIVEN ,
822
822
sort : Optional [Literal ["created_at" , "primary_eval_issue_score" , "total_count" , "custom_rank" , "impact_score" ]]
823
823
| NotGiven = NOT_GIVEN ,
824
- tool_call_names : Optional [List [str ]] | NotGiven = NOT_GIVEN ,
824
+ tool_call_names : Optional [SequenceNotStr [str ]] | NotGiven = NOT_GIVEN ,
825
825
was_cache_hit : Optional [bool ] | NotGiven = NOT_GIVEN ,
826
826
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
827
827
# The extra values given here take precedence over values defined on the client or passed to this method.
0 commit comments