88
99import httpx
1010
11- from ..._types import NOT_GIVEN , Body , Query , Headers , NotGiven
11+ from ..._types import NOT_GIVEN , Body , Query , Headers , NotGiven , SequenceNotStr
1212from ..._utils import maybe_transform , async_maybe_transform
1313from ..._compat import cached_property
1414from ..._resource import SyncAPIResource , AsyncAPIResource
@@ -104,13 +104,13 @@ def list(
104104 created_at_end : Union [str , datetime , None ] | NotGiven = NOT_GIVEN ,
105105 created_at_start : Union [str , datetime , None ] | NotGiven = NOT_GIVEN ,
106106 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 ,
108108 guardrailed : Optional [bool ] | NotGiven = NOT_GIVEN ,
109109 has_tool_calls : Optional [bool ] | NotGiven = NOT_GIVEN ,
110110 limit : int | NotGiven = NOT_GIVEN ,
111111 offset : int | NotGiven = NOT_GIVEN ,
112112 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 ,
114114 primary_eval_issue : Optional [
115115 List [Literal ["hallucination" , "search_failure" , "unhelpful" , "difficult_query" , "ungrounded" ]]
116116 ]
@@ -127,7 +127,7 @@ def list(
127127 ]
128128 ]
129129 | NotGiven = NOT_GIVEN ,
130- tool_call_names : Optional [List [str ]] | NotGiven = NOT_GIVEN ,
130+ tool_call_names : Optional [SequenceNotStr [str ]] | NotGiven = NOT_GIVEN ,
131131 was_cache_hit : Optional [bool ] | NotGiven = NOT_GIVEN ,
132132 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
133133 # 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(
248248 created_at_end : Union [str , datetime , None ] | NotGiven = NOT_GIVEN ,
249249 created_at_start : Union [str , datetime , None ] | NotGiven = NOT_GIVEN ,
250250 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 ,
252252 guardrailed : Optional [bool ] | NotGiven = NOT_GIVEN ,
253253 has_tool_calls : Optional [bool ] | NotGiven = NOT_GIVEN ,
254254 limit : int | NotGiven = NOT_GIVEN ,
255255 needs_review : Optional [bool ] | NotGiven = NOT_GIVEN ,
256256 offset : int | NotGiven = NOT_GIVEN ,
257257 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 ,
259259 primary_eval_issue : Optional [
260260 List [Literal ["hallucination" , "search_failure" , "unhelpful" , "difficult_query" , "ungrounded" ]]
261261 ]
262262 | NotGiven = NOT_GIVEN ,
263- remediation_ids : List [str ] | NotGiven = NOT_GIVEN ,
263+ remediation_ids : SequenceNotStr [str ] | NotGiven = NOT_GIVEN ,
264264 sort : Optional [
265265 Literal [
266266 "created_at" ,
@@ -273,7 +273,7 @@ def list_by_group(
273273 ]
274274 ]
275275 | NotGiven = NOT_GIVEN ,
276- tool_call_names : Optional [List [str ]] | NotGiven = NOT_GIVEN ,
276+ tool_call_names : Optional [SequenceNotStr [str ]] | NotGiven = NOT_GIVEN ,
277277 was_cache_hit : Optional [bool ] | NotGiven = NOT_GIVEN ,
278278 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
279279 # 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(
359359 created_at_end : Union [str , datetime , None ] | NotGiven = NOT_GIVEN ,
360360 created_at_start : Union [str , datetime , None ] | NotGiven = NOT_GIVEN ,
361361 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 ,
363363 guardrailed : Optional [bool ] | NotGiven = NOT_GIVEN ,
364364 has_tool_calls : Optional [bool ] | NotGiven = NOT_GIVEN ,
365365 limit : int | NotGiven = NOT_GIVEN ,
366366 needs_review : Optional [bool ] | NotGiven = NOT_GIVEN ,
367367 offset : int | NotGiven = NOT_GIVEN ,
368368 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 ,
370370 primary_eval_issue : Optional [
371371 List [Literal ["hallucination" , "search_failure" , "unhelpful" , "difficult_query" , "ungrounded" ]]
372372 ]
373373 | NotGiven = NOT_GIVEN ,
374374 sort : Optional [Literal ["created_at" , "primary_eval_issue_score" , "total_count" , "custom_rank" , "impact_score" ]]
375375 | NotGiven = NOT_GIVEN ,
376- tool_call_names : Optional [List [str ]] | NotGiven = NOT_GIVEN ,
376+ tool_call_names : Optional [SequenceNotStr [str ]] | NotGiven = NOT_GIVEN ,
377377 was_cache_hit : Optional [bool ] | NotGiven = NOT_GIVEN ,
378378 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
379379 # The extra values given here take precedence over values defined on the client or passed to this method.
@@ -550,13 +550,13 @@ def list(
550550 created_at_end : Union [str , datetime , None ] | NotGiven = NOT_GIVEN ,
551551 created_at_start : Union [str , datetime , None ] | NotGiven = NOT_GIVEN ,
552552 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 ,
554554 guardrailed : Optional [bool ] | NotGiven = NOT_GIVEN ,
555555 has_tool_calls : Optional [bool ] | NotGiven = NOT_GIVEN ,
556556 limit : int | NotGiven = NOT_GIVEN ,
557557 offset : int | NotGiven = NOT_GIVEN ,
558558 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 ,
560560 primary_eval_issue : Optional [
561561 List [Literal ["hallucination" , "search_failure" , "unhelpful" , "difficult_query" , "ungrounded" ]]
562562 ]
@@ -573,7 +573,7 @@ def list(
573573 ]
574574 ]
575575 | NotGiven = NOT_GIVEN ,
576- tool_call_names : Optional [List [str ]] | NotGiven = NOT_GIVEN ,
576+ tool_call_names : Optional [SequenceNotStr [str ]] | NotGiven = NOT_GIVEN ,
577577 was_cache_hit : Optional [bool ] | NotGiven = NOT_GIVEN ,
578578 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
579579 # 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(
696696 created_at_end : Union [str , datetime , None ] | NotGiven = NOT_GIVEN ,
697697 created_at_start : Union [str , datetime , None ] | NotGiven = NOT_GIVEN ,
698698 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 ,
700700 guardrailed : Optional [bool ] | NotGiven = NOT_GIVEN ,
701701 has_tool_calls : Optional [bool ] | NotGiven = NOT_GIVEN ,
702702 limit : int | NotGiven = NOT_GIVEN ,
703703 needs_review : Optional [bool ] | NotGiven = NOT_GIVEN ,
704704 offset : int | NotGiven = NOT_GIVEN ,
705705 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 ,
707707 primary_eval_issue : Optional [
708708 List [Literal ["hallucination" , "search_failure" , "unhelpful" , "difficult_query" , "ungrounded" ]]
709709 ]
710710 | NotGiven = NOT_GIVEN ,
711- remediation_ids : List [str ] | NotGiven = NOT_GIVEN ,
711+ remediation_ids : SequenceNotStr [str ] | NotGiven = NOT_GIVEN ,
712712 sort : Optional [
713713 Literal [
714714 "created_at" ,
@@ -721,7 +721,7 @@ async def list_by_group(
721721 ]
722722 ]
723723 | NotGiven = NOT_GIVEN ,
724- tool_call_names : Optional [List [str ]] | NotGiven = NOT_GIVEN ,
724+ tool_call_names : Optional [SequenceNotStr [str ]] | NotGiven = NOT_GIVEN ,
725725 was_cache_hit : Optional [bool ] | NotGiven = NOT_GIVEN ,
726726 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
727727 # 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(
807807 created_at_end : Union [str , datetime , None ] | NotGiven = NOT_GIVEN ,
808808 created_at_start : Union [str , datetime , None ] | NotGiven = NOT_GIVEN ,
809809 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 ,
811811 guardrailed : Optional [bool ] | NotGiven = NOT_GIVEN ,
812812 has_tool_calls : Optional [bool ] | NotGiven = NOT_GIVEN ,
813813 limit : int | NotGiven = NOT_GIVEN ,
814814 needs_review : Optional [bool ] | NotGiven = NOT_GIVEN ,
815815 offset : int | NotGiven = NOT_GIVEN ,
816816 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 ,
818818 primary_eval_issue : Optional [
819819 List [Literal ["hallucination" , "search_failure" , "unhelpful" , "difficult_query" , "ungrounded" ]]
820820 ]
821821 | NotGiven = NOT_GIVEN ,
822822 sort : Optional [Literal ["created_at" , "primary_eval_issue_score" , "total_count" , "custom_rank" , "impact_score" ]]
823823 | NotGiven = NOT_GIVEN ,
824- tool_call_names : Optional [List [str ]] | NotGiven = NOT_GIVEN ,
824+ tool_call_names : Optional [SequenceNotStr [str ]] | NotGiven = NOT_GIVEN ,
825825 was_cache_hit : Optional [bool ] | NotGiven = NOT_GIVEN ,
826826 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
827827 # The extra values given here take precedence over values defined on the client or passed to this method.
0 commit comments