|
50 | 50 | from ....types.shared.chat_model import ChatModel
|
51 | 51 | from ....types.beta.thread_deleted import ThreadDeleted
|
52 | 52 | from ....types.shared_params.metadata import Metadata
|
| 53 | +from ....types.beta.assistant_tool_param import AssistantToolParam |
53 | 54 | from ....types.beta.assistant_stream_event import AssistantStreamEvent
|
54 | 55 | from ....types.beta.assistant_tool_choice_option_param import AssistantToolChoiceOptionParam
|
55 | 56 | from ....types.beta.assistant_response_format_option_param import AssistantResponseFormatOptionParam
|
@@ -282,7 +283,7 @@ def create_and_run(
|
282 | 283 | thread: thread_create_and_run_params.Thread | NotGiven = NOT_GIVEN,
|
283 | 284 | tool_choice: Optional[AssistantToolChoiceOptionParam] | NotGiven = NOT_GIVEN,
|
284 | 285 | tool_resources: Optional[thread_create_and_run_params.ToolResources] | NotGiven = NOT_GIVEN,
|
285 |
| - tools: Optional[Iterable[thread_create_and_run_params.Tool]] | NotGiven = NOT_GIVEN, |
| 286 | + tools: Optional[Iterable[AssistantToolParam]] | NotGiven = NOT_GIVEN, |
286 | 287 | top_p: Optional[float] | NotGiven = NOT_GIVEN,
|
287 | 288 | truncation_strategy: Optional[thread_create_and_run_params.TruncationStrategy] | NotGiven = NOT_GIVEN,
|
288 | 289 | # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
@@ -415,7 +416,7 @@ def create_and_run(
|
415 | 416 | thread: thread_create_and_run_params.Thread | NotGiven = NOT_GIVEN,
|
416 | 417 | tool_choice: Optional[AssistantToolChoiceOptionParam] | NotGiven = NOT_GIVEN,
|
417 | 418 | tool_resources: Optional[thread_create_and_run_params.ToolResources] | NotGiven = NOT_GIVEN,
|
418 |
| - tools: Optional[Iterable[thread_create_and_run_params.Tool]] | NotGiven = NOT_GIVEN, |
| 419 | + tools: Optional[Iterable[AssistantToolParam]] | NotGiven = NOT_GIVEN, |
419 | 420 | top_p: Optional[float] | NotGiven = NOT_GIVEN,
|
420 | 421 | truncation_strategy: Optional[thread_create_and_run_params.TruncationStrategy] | NotGiven = NOT_GIVEN,
|
421 | 422 | # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
@@ -548,7 +549,7 @@ def create_and_run(
|
548 | 549 | thread: thread_create_and_run_params.Thread | NotGiven = NOT_GIVEN,
|
549 | 550 | tool_choice: Optional[AssistantToolChoiceOptionParam] | NotGiven = NOT_GIVEN,
|
550 | 551 | tool_resources: Optional[thread_create_and_run_params.ToolResources] | NotGiven = NOT_GIVEN,
|
551 |
| - tools: Optional[Iterable[thread_create_and_run_params.Tool]] | NotGiven = NOT_GIVEN, |
| 552 | + tools: Optional[Iterable[AssistantToolParam]] | NotGiven = NOT_GIVEN, |
552 | 553 | top_p: Optional[float] | NotGiven = NOT_GIVEN,
|
553 | 554 | truncation_strategy: Optional[thread_create_and_run_params.TruncationStrategy] | NotGiven = NOT_GIVEN,
|
554 | 555 | # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
@@ -681,7 +682,7 @@ def create_and_run(
|
681 | 682 | thread: thread_create_and_run_params.Thread | NotGiven = NOT_GIVEN,
|
682 | 683 | tool_choice: Optional[AssistantToolChoiceOptionParam] | NotGiven = NOT_GIVEN,
|
683 | 684 | tool_resources: Optional[thread_create_and_run_params.ToolResources] | NotGiven = NOT_GIVEN,
|
684 |
| - tools: Optional[Iterable[thread_create_and_run_params.Tool]] | NotGiven = NOT_GIVEN, |
| 685 | + tools: Optional[Iterable[AssistantToolParam]] | NotGiven = NOT_GIVEN, |
685 | 686 | top_p: Optional[float] | NotGiven = NOT_GIVEN,
|
686 | 687 | truncation_strategy: Optional[thread_create_and_run_params.TruncationStrategy] | NotGiven = NOT_GIVEN,
|
687 | 688 | # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
@@ -1131,7 +1132,7 @@ async def create_and_run(
|
1131 | 1132 | thread: thread_create_and_run_params.Thread | NotGiven = NOT_GIVEN,
|
1132 | 1133 | tool_choice: Optional[AssistantToolChoiceOptionParam] | NotGiven = NOT_GIVEN,
|
1133 | 1134 | tool_resources: Optional[thread_create_and_run_params.ToolResources] | NotGiven = NOT_GIVEN,
|
1134 |
| - tools: Optional[Iterable[thread_create_and_run_params.Tool]] | NotGiven = NOT_GIVEN, |
| 1135 | + tools: Optional[Iterable[AssistantToolParam]] | NotGiven = NOT_GIVEN, |
1135 | 1136 | top_p: Optional[float] | NotGiven = NOT_GIVEN,
|
1136 | 1137 | truncation_strategy: Optional[thread_create_and_run_params.TruncationStrategy] | NotGiven = NOT_GIVEN,
|
1137 | 1138 | # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
@@ -1264,7 +1265,7 @@ async def create_and_run(
|
1264 | 1265 | thread: thread_create_and_run_params.Thread | NotGiven = NOT_GIVEN,
|
1265 | 1266 | tool_choice: Optional[AssistantToolChoiceOptionParam] | NotGiven = NOT_GIVEN,
|
1266 | 1267 | tool_resources: Optional[thread_create_and_run_params.ToolResources] | NotGiven = NOT_GIVEN,
|
1267 |
| - tools: Optional[Iterable[thread_create_and_run_params.Tool]] | NotGiven = NOT_GIVEN, |
| 1268 | + tools: Optional[Iterable[AssistantToolParam]] | NotGiven = NOT_GIVEN, |
1268 | 1269 | top_p: Optional[float] | NotGiven = NOT_GIVEN,
|
1269 | 1270 | truncation_strategy: Optional[thread_create_and_run_params.TruncationStrategy] | NotGiven = NOT_GIVEN,
|
1270 | 1271 | # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
@@ -1397,7 +1398,7 @@ async def create_and_run(
|
1397 | 1398 | thread: thread_create_and_run_params.Thread | NotGiven = NOT_GIVEN,
|
1398 | 1399 | tool_choice: Optional[AssistantToolChoiceOptionParam] | NotGiven = NOT_GIVEN,
|
1399 | 1400 | tool_resources: Optional[thread_create_and_run_params.ToolResources] | NotGiven = NOT_GIVEN,
|
1400 |
| - tools: Optional[Iterable[thread_create_and_run_params.Tool]] | NotGiven = NOT_GIVEN, |
| 1401 | + tools: Optional[Iterable[AssistantToolParam]] | NotGiven = NOT_GIVEN, |
1401 | 1402 | top_p: Optional[float] | NotGiven = NOT_GIVEN,
|
1402 | 1403 | truncation_strategy: Optional[thread_create_and_run_params.TruncationStrategy] | NotGiven = NOT_GIVEN,
|
1403 | 1404 | # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
@@ -1530,7 +1531,7 @@ async def create_and_run(
|
1530 | 1531 | thread: thread_create_and_run_params.Thread | NotGiven = NOT_GIVEN,
|
1531 | 1532 | tool_choice: Optional[AssistantToolChoiceOptionParam] | NotGiven = NOT_GIVEN,
|
1532 | 1533 | tool_resources: Optional[thread_create_and_run_params.ToolResources] | NotGiven = NOT_GIVEN,
|
1533 |
| - tools: Optional[Iterable[thread_create_and_run_params.Tool]] | NotGiven = NOT_GIVEN, |
| 1534 | + tools: Optional[Iterable[AssistantToolParam]] | NotGiven = NOT_GIVEN, |
1534 | 1535 | top_p: Optional[float] | NotGiven = NOT_GIVEN,
|
1535 | 1536 | truncation_strategy: Optional[thread_create_and_run_params.TruncationStrategy] | NotGiven = NOT_GIVEN,
|
1536 | 1537 | # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
0 commit comments