|
49 | 49 |
|
50 | 50 | if TYPE_CHECKING:
|
51 | 51 | # pylint: disable=unused-import,ungrouped-imports
|
52 |
| - from ... import _types |
| 52 | + from ... import types as _types |
53 | 53 |
|
54 | 54 | JSON = MutableMapping[str, Any] # pylint: disable=unsubscriptable-object
|
55 | 55 | _Unset: Any = object()
|
@@ -193,8 +193,10 @@ async def create( # pylint: disable=arguments-differ
|
193 | 193 | :keyword response_format: Specifies the format that the model must output. Is one of the
|
194 | 194 | following types: str, Union[str, "_models.AgentsApiResponseFormatMode"],
|
195 | 195 | AgentsApiResponseFormat Default value is None.
|
196 |
| - :paramtype response_format: str or str or ~azure.ai.agents.models.AgentsApiResponseFormatMode |
197 |
| - or ~azure.ai.agents.models.AgentsApiResponseFormat |
| 196 | + :paramtype response_format: Optional[Union[str, |
| 197 | + ~azure.ai.agents.models.AgentsApiResponseFormatMode, |
| 198 | + ~azure.ai.agents.models.AgentsApiResponseFormat, |
| 199 | + ~azure.ai.agents.models.ResponseFormatJsonSchemaType]] |
198 | 200 | :keyword parallel_tool_calls: If ``true`` functions will run in parallel during tool use.
|
199 | 201 | Default value is None.
|
200 | 202 | :paramtype parallel_tool_calls: bool
|
@@ -356,8 +358,10 @@ async def create(
|
356 | 358 | :keyword response_format: Specifies the format that the model must output. Is one of the
|
357 | 359 | following types: str, Union[str, "_models.AgentsApiResponseFormatMode"],
|
358 | 360 | AgentsApiResponseFormat Default value is None.
|
359 |
| - :paramtype response_format: str or str or ~azure.ai.agents.models.AgentsApiResponseFormatMode |
360 |
| - or ~azure.ai.agents.models.AgentsApiResponseFormat |
| 361 | + :paramtype response_format: Optional[Union[str, |
| 362 | + ~azure.ai.agents.models.AgentsApiResponseFormatMode, |
| 363 | + ~azure.ai.agents.models.AgentsApiResponseFormat, |
| 364 | + ~azure.ai.agents.models.ResponseFormatJsonSchemaType]] |
361 | 365 | :keyword parallel_tool_calls: If ``true`` functions will run in parallel during tool use.
|
362 | 366 | Default value is None.
|
363 | 367 | :paramtype parallel_tool_calls: bool
|
@@ -497,9 +501,10 @@ async def create_and_process(
|
497 | 501 | :keyword response_format: Specifies the format that the model must output. Is one of the
|
498 | 502 | following types: str, Union[str, "_models.AgentsApiResponseFormatMode"],
|
499 | 503 | AgentsApiResponseFormat Default value is None.
|
500 |
| - :paramtype response_format: str or str or |
501 |
| - ~azure.ai.agents.models.AgentsApiResponseFormatMode or |
502 |
| - ~azure.ai.agents.models.AgentsApiResponseFormat |
| 504 | + :paramtype response_format: Optional[Union[str, |
| 505 | + ~azure.ai.agents.models.AgentsApiResponseFormatMode, |
| 506 | + ~azure.ai.agents.models.AgentsApiResponseFormat, |
| 507 | + ~azure.ai.agents.models.ResponseFormatJsonSchemaType]] |
503 | 508 | :keyword parallel_tool_calls: If ``true`` functions will run in parallel during tool use.
|
504 | 509 | Default value is None.
|
505 | 510 | :paramtype parallel_tool_calls: bool
|
@@ -673,8 +678,10 @@ async def stream(
|
673 | 678 | :keyword response_format: Specifies the format that the model must output. Is one of the
|
674 | 679 | following types: str, Union[str, "_models.AgentsApiResponseFormatMode"],
|
675 | 680 | AgentsApiResponseFormat Default value is None.
|
676 |
| - :paramtype response_format: str or str or ~azure.ai.agents.models.AgentsApiResponseFormatMode |
677 |
| - or ~azure.ai.agents.models.AgentsApiResponseFormat |
| 681 | + :paramtype response_format: Optional[Union[str, |
| 682 | + ~azure.ai.agents.models.AgentsApiResponseFormatMode, |
| 683 | + ~azure.ai.agents.models.AgentsApiResponseFormat, |
| 684 | + ~azure.ai.agents.models.ResponseFormatJsonSchemaType]] |
678 | 685 | :keyword parallel_tool_calls: If ``true`` functions will run in parallel during tool use.
|
679 | 686 | Default value is None.
|
680 | 687 | :paramtype parallel_tool_calls: bool
|
@@ -782,8 +789,10 @@ async def stream(
|
782 | 789 | :keyword response_format: Specifies the format that the model must output. Is one of the
|
783 | 790 | following types: str, Union[str, "_models.AgentsApiResponseFormatMode"],
|
784 | 791 | AgentsApiResponseFormat Default value is None.
|
785 |
| - :paramtype response_format: str or str or ~azure.ai.agents.models.AgentsApiResponseFormatMode |
786 |
| - or ~azure.ai.agents.models.AgentsApiResponseFormat |
| 792 | + :paramtype response_format: Optional[Union[str, |
| 793 | + ~azure.ai.agents.models.AgentsApiResponseFormatMode, |
| 794 | + ~azure.ai.agents.models.AgentsApiResponseFormat, |
| 795 | + ~azure.ai.agents.models.ResponseFormatJsonSchemaType]] |
787 | 796 | :keyword parallel_tool_calls: If ``true`` functions will run in parallel during tool use.
|
788 | 797 | Default value is None.
|
789 | 798 | :paramtype parallel_tool_calls: bool
|
@@ -961,8 +970,10 @@ async def stream( # pyright: ignore[reportInconsistentOverload]
|
961 | 970 | :keyword response_format: Specifies the format that the model must output. Is one of the
|
962 | 971 | following types: str, Union[str, "_models.AgentsApiResponseFormatMode"],
|
963 | 972 | AgentsApiResponseFormat Default value is None.
|
964 |
| - :paramtype response_format: str or str or ~azure.ai.agents.models.AgentsApiResponseFormatMode |
965 |
| - or ~azure.ai.agents.models.AgentsApiResponseFormat |
| 973 | + :paramtype response_format: Optional[Union[str, |
| 974 | + ~azure.ai.agents.models.AgentsApiResponseFormatMode, |
| 975 | + ~azure.ai.agents.models.AgentsApiResponseFormat, |
| 976 | + ~azure.ai.agents.models.ResponseFormatJsonSchemaType]] |
966 | 977 | :keyword parallel_tool_calls: If ``true`` functions will run in parallel during tool use.
|
967 | 978 | Default value is None.
|
968 | 979 | :paramtype parallel_tool_calls: bool
|
@@ -1305,7 +1316,7 @@ async def upload( # pylint: disable=arguments-differ
|
1305 | 1316 | """Uploads a file for use by other operations.
|
1306 | 1317 |
|
1307 | 1318 | :keyword file_path: The path to the file to upload.
|
1308 |
| - :type file_path: str |
| 1319 | + :paramtype file_path: str |
1309 | 1320 | :keyword purpose: The intended purpose of the uploaded file. Known values are: "assistants", "assistants_output", and "vision".
|
1310 | 1321 | :paramtype purpose: str or ~azure.ai.agents.models.FilePurpose
|
1311 | 1322 | :return: FileInfo. The FileInfo is compatible with MutableMapping
|
@@ -1466,7 +1477,7 @@ async def upload_and_poll(
|
1466 | 1477 | """Uploads a file for use by other operations.
|
1467 | 1478 |
|
1468 | 1479 | :keyword file_path: The path to the file to upload.
|
1469 |
| - :type file_path: str |
| 1480 | + :paramtype file_path: str |
1470 | 1481 | :keyword purpose: Known values are: "assistants", "assistants_output", and "vision".
|
1471 | 1482 | :paramtype purpose: str or ~azure.ai.agents.models.FilePurpose
|
1472 | 1483 | :keyword polling_interval: Time to wait before polling for the status of the uploaded file. Default value
|
|
0 commit comments