|
2 | 2 |
|
3 | 3 | from __future__ import annotations |
4 | 4 |
|
5 | | -from typing import Any, List, cast |
| 5 | +from typing import Any, cast |
6 | 6 |
|
7 | 7 | import httpx |
8 | 8 |
|
|
15 | 15 | AsyncQueryResourceWithStreamingResponse, |
16 | 16 | ) |
17 | 17 | from ...types import agent_list_params, agent_create_params, agent_update_params |
18 | | -from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven |
| 18 | +from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven, SequenceNotStr |
19 | 19 | from ..._utils import maybe_transform, async_maybe_transform |
20 | 20 | from ..._compat import cached_property |
21 | 21 | from ..._resource import SyncAPIResource, AsyncAPIResource |
@@ -64,12 +64,12 @@ def create( |
64 | 64 | *, |
65 | 65 | name: str, |
66 | 66 | agent_configs: AgentConfigsParam | NotGiven = NOT_GIVEN, |
67 | | - datastore_ids: List[str] | NotGiven = NOT_GIVEN, |
| 67 | + datastore_ids: SequenceNotStr[str] | NotGiven = NOT_GIVEN, |
68 | 68 | description: str | NotGiven = NOT_GIVEN, |
69 | 69 | filter_prompt: str | NotGiven = NOT_GIVEN, |
70 | 70 | multiturn_system_prompt: str | NotGiven = NOT_GIVEN, |
71 | 71 | no_retrieval_system_prompt: str | NotGiven = NOT_GIVEN, |
72 | | - suggested_queries: List[str] | NotGiven = NOT_GIVEN, |
| 72 | + suggested_queries: SequenceNotStr[str] | NotGiven = NOT_GIVEN, |
73 | 73 | system_prompt: str | NotGiven = NOT_GIVEN, |
74 | 74 | # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. |
75 | 75 | # The extra values given here take precedence over values defined on the client or passed to this method. |
@@ -156,12 +156,12 @@ def update( |
156 | 156 | agent_id: str, |
157 | 157 | *, |
158 | 158 | agent_configs: AgentConfigsParam | NotGiven = NOT_GIVEN, |
159 | | - datastore_ids: List[str] | NotGiven = NOT_GIVEN, |
| 159 | + datastore_ids: SequenceNotStr[str] | NotGiven = NOT_GIVEN, |
160 | 160 | filter_prompt: str | NotGiven = NOT_GIVEN, |
161 | 161 | llm_model_id: str | NotGiven = NOT_GIVEN, |
162 | 162 | multiturn_system_prompt: str | NotGiven = NOT_GIVEN, |
163 | 163 | no_retrieval_system_prompt: str | NotGiven = NOT_GIVEN, |
164 | | - suggested_queries: List[str] | NotGiven = NOT_GIVEN, |
| 164 | + suggested_queries: SequenceNotStr[str] | NotGiven = NOT_GIVEN, |
165 | 165 | system_prompt: str | NotGiven = NOT_GIVEN, |
166 | 166 | # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. |
167 | 167 | # The extra values given here take precedence over values defined on the client or passed to this method. |
@@ -462,12 +462,12 @@ async def create( |
462 | 462 | *, |
463 | 463 | name: str, |
464 | 464 | agent_configs: AgentConfigsParam | NotGiven = NOT_GIVEN, |
465 | | - datastore_ids: List[str] | NotGiven = NOT_GIVEN, |
| 465 | + datastore_ids: SequenceNotStr[str] | NotGiven = NOT_GIVEN, |
466 | 466 | description: str | NotGiven = NOT_GIVEN, |
467 | 467 | filter_prompt: str | NotGiven = NOT_GIVEN, |
468 | 468 | multiturn_system_prompt: str | NotGiven = NOT_GIVEN, |
469 | 469 | no_retrieval_system_prompt: str | NotGiven = NOT_GIVEN, |
470 | | - suggested_queries: List[str] | NotGiven = NOT_GIVEN, |
| 470 | + suggested_queries: SequenceNotStr[str] | NotGiven = NOT_GIVEN, |
471 | 471 | system_prompt: str | NotGiven = NOT_GIVEN, |
472 | 472 | # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. |
473 | 473 | # The extra values given here take precedence over values defined on the client or passed to this method. |
@@ -554,12 +554,12 @@ async def update( |
554 | 554 | agent_id: str, |
555 | 555 | *, |
556 | 556 | agent_configs: AgentConfigsParam | NotGiven = NOT_GIVEN, |
557 | | - datastore_ids: List[str] | NotGiven = NOT_GIVEN, |
| 557 | + datastore_ids: SequenceNotStr[str] | NotGiven = NOT_GIVEN, |
558 | 558 | filter_prompt: str | NotGiven = NOT_GIVEN, |
559 | 559 | llm_model_id: str | NotGiven = NOT_GIVEN, |
560 | 560 | multiturn_system_prompt: str | NotGiven = NOT_GIVEN, |
561 | 561 | no_retrieval_system_prompt: str | NotGiven = NOT_GIVEN, |
562 | | - suggested_queries: List[str] | NotGiven = NOT_GIVEN, |
| 562 | + suggested_queries: SequenceNotStr[str] | NotGiven = NOT_GIVEN, |
563 | 563 | system_prompt: str | NotGiven = NOT_GIVEN, |
564 | 564 | # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. |
565 | 565 | # The extra values given here take precedence over values defined on the client or passed to this method. |
|
0 commit comments