|
30 | 30 | from . import models as _models |
31 | 31 | from ._client import AgentsClient as AgentsClientGenerated |
32 | 32 | from .operations._patch import _has_errors_in_toolcalls_output |
33 | | -from . import _types |
| 33 | +from . import types as _types |
34 | 34 |
|
35 | 35 | if sys.version_info >= (3, 9): |
36 | 36 | from collections.abc import MutableMapping |
@@ -140,10 +140,10 @@ def create_agent( # pylint: disable=arguments-differ |
140 | 140 | :keyword response_format: Specifies the format for the responses, particularly for tool calls. |
141 | 141 | Can be a string, response format mode, or structured response format object that defines how |
142 | 142 | the agent should structure its outputs. |
143 | | - :type response_format: str or |
144 | | - ~azure.ai.agents.models.AgentsApiResponseFormatMode or |
145 | | - ~azure.ai.agents.models.AgentsApiResponseFormat or |
146 | | - ~azure.ai.agents.models.ResponseFormatJsonSchemaType |
| 143 | + :type response_format: Optional[Union[str, |
| 144 | + ~azure.ai.agents.models.AgentsApiResponseFormatMode, |
| 145 | + ~azure.ai.agents.models.AgentsApiResponseFormat, |
| 146 | + ~azure.ai.agents.models.ResponseFormatJsonSchemaType]] |
147 | 147 | :keyword metadata: Custom key-value pairs for storing additional information about the agent. |
148 | 148 | Useful for categorization, tracking, or storing application-specific data. Limited to 16 pairs, |
149 | 149 | with keys up to 64 characters and values up to 512 characters each. |
@@ -205,10 +205,10 @@ def create_agent( # pylint: disable=arguments-differ |
205 | 205 | :keyword response_format: Specifies the format for the responses, particularly for tool calls. |
206 | 206 | Can be a string, response format mode, or structured response format object that defines how |
207 | 207 | the agent should structure its outputs. |
208 | | - :type response_format: str or |
209 | | - ~azure.ai.agents.models.AgentsApiResponseFormatMode or |
210 | | - ~azure.ai.agents.models.AgentsApiResponseFormat or |
211 | | - ~azure.ai.agents.models.ResponseFormatJsonSchemaType |
| 208 | + :type response_format: Optional[Union[str, |
| 209 | + ~azure.ai.agents.models.AgentsApiResponseFormatMode, |
| 210 | + ~azure.ai.agents.models.AgentsApiResponseFormat, |
| 211 | + ~azure.ai.agents.models.ResponseFormatJsonSchemaType]] |
212 | 212 | :keyword metadata: Custom key-value pairs for storing additional information about the agent. |
213 | 213 | Useful for categorization, tracking, or storing application-specific data. Limited to 16 pairs, |
214 | 214 | with keys up to 64 characters and values up to 512 characters each. |
@@ -295,10 +295,10 @@ def create_agent( |
295 | 295 | :keyword response_format: Specifies the format for the responses, particularly for tool calls. |
296 | 296 | Can be a string, response format mode, or structured response format object that defines how |
297 | 297 | the agent should structure its outputs. |
298 | | - :type response_format: str or |
299 | | - ~azure.ai.agents.models.AgentsApiResponseFormatMode or |
300 | | - ~azure.ai.agents.models.AgentsApiResponseFormat or |
301 | | - ~azure.ai.agents.models.ResponseFormatJsonSchemaType |
| 298 | + :type response_format: Optional[Union[str, |
| 299 | + ~azure.ai.agents.models.AgentsApiResponseFormatMode, |
| 300 | + ~azure.ai.agents.models.AgentsApiResponseFormat, |
| 301 | + ~azure.ai.agents.models.ResponseFormatJsonSchemaType]] |
302 | 302 | :keyword metadata: Custom key-value pairs for storing additional information about the agent. |
303 | 303 | :paramtype metadata: Optional[Dict[str, str]] |
304 | 304 | :keyword content_type: The MIME type of the request body when using body parameter. |
@@ -392,10 +392,10 @@ def update_agent( # pylint: disable=arguments-differ |
392 | 392 | :keyword response_format: Specifies the format for the responses, particularly for tool calls. |
393 | 393 | Can be a string, response format mode, or structured response format object that defines how |
394 | 394 | the agent should structure its outputs. |
395 | | - :type response_format: str or |
396 | | - ~azure.ai.agents.models.AgentsApiResponseFormatMode or |
397 | | - ~azure.ai.agents.models.AgentsApiResponseFormat or |
398 | | - ~azure.ai.agents.models.ResponseFormatJsonSchemaType |
| 395 | + :type response_format: Optional[Union[str, |
| 396 | + ~azure.ai.agents.models.AgentsApiResponseFormatMode, |
| 397 | + ~azure.ai.agents.models.AgentsApiResponseFormat, |
| 398 | + ~azure.ai.agents.models.ResponseFormatJsonSchemaType]] |
399 | 399 | :keyword metadata: A set of up to 16 key/value pairs that can be attached to an object, used |
400 | 400 | for storing additional information about that object in a structured format. Keys may be up to |
401 | 401 | 64 characters in length and values may be up to 512 characters in length. Default value is |
@@ -458,10 +458,10 @@ def update_agent( # pylint: disable=arguments-differ |
458 | 458 | :keyword response_format: Specifies the format for the responses, particularly for tool calls. |
459 | 459 | Can be a string, response format mode, or structured response format object that defines how |
460 | 460 | the agent should structure its outputs. |
461 | | - :type response_format: str or |
462 | | - ~azure.ai.agents.models.AgentsApiResponseFormatMode or |
463 | | - ~azure.ai.agents.models.AgentsApiResponseFormat or |
464 | | - ~azure.ai.agents.models.ResponseFormatJsonSchemaType |
| 461 | + :type response_format: Optional[Union[str, |
| 462 | + ~azure.ai.agents.models.AgentsApiResponseFormatMode, |
| 463 | + ~azure.ai.agents.models.AgentsApiResponseFormat, |
| 464 | + ~azure.ai.agents.models.ResponseFormatJsonSchemaType]] |
465 | 465 | :keyword metadata: A set of up to 16 key/value pairs that can be attached to an object, used |
466 | 466 | for storing additional information about that object in a structured format. Keys may be up to |
467 | 467 | 64 characters in length and values may be up to 512 characters in length. Default value is |
@@ -569,10 +569,10 @@ def update_agent( |
569 | 569 | :keyword response_format: Specifies the format for the responses, particularly for tool calls. |
570 | 570 | Can be a string, response format mode, or structured response format object that defines how |
571 | 571 | the agent should structure its outputs. |
572 | | - :type response_format: str or |
573 | | - ~azure.ai.agents.models.AgentsApiResponseFormatMode or |
574 | | - ~azure.ai.agents.models.AgentsApiResponseFormat or |
575 | | - ~azure.ai.agents.models.ResponseFormatJsonSchemaType |
| 572 | + :type response_format: Optional[Union[str, |
| 573 | + ~azure.ai.agents.models.AgentsApiResponseFormatMode, |
| 574 | + ~azure.ai.agents.models.AgentsApiResponseFormat, |
| 575 | + ~azure.ai.agents.models.ResponseFormatJsonSchemaType]] |
576 | 576 | :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. |
577 | 577 | Default value is "application/json". |
578 | 578 | :paramtype content_type: str |
@@ -732,10 +732,10 @@ def create_thread_and_run( |
732 | 732 | :keyword response_format: Specifies the format for the responses, particularly for tool calls. |
733 | 733 | Can be a string, response format mode, or structured response format object that defines how |
734 | 734 | the agent should structure its outputs. |
735 | | - :type response_format: str or |
736 | | - ~azure.ai.agents.models.AgentsApiResponseFormatMode or |
737 | | - ~azure.ai.agents.models.AgentsApiResponseFormat or |
738 | | - ~azure.ai.agents.models.ResponseFormatJsonSchemaType |
| 735 | + :type response_format: Optional[Union[str, |
| 736 | + ~azure.ai.agents.models.AgentsApiResponseFormatMode, |
| 737 | + ~azure.ai.agents.models.AgentsApiResponseFormat, |
| 738 | + ~azure.ai.agents.models.ResponseFormatJsonSchemaType]] |
739 | 739 | :keyword parallel_tool_calls: If True, tools will be invoked in parallel. |
740 | 740 | :type parallel_tool_calls: bool |
741 | 741 | :keyword metadata: Up to 16 key/value pairs for structured metadata on the run. |
@@ -836,10 +836,10 @@ def create_thread_and_run( # type: ignore |
836 | 836 | :keyword response_format: Specifies the format for the responses, particularly for tool calls. |
837 | 837 | Can be a string, response format mode, or structured response format object that defines how |
838 | 838 | the agent should structure its outputs. |
839 | | - :type response_format: str or |
840 | | - ~azure.ai.agents.models.AgentsApiResponseFormatMode or |
841 | | - ~azure.ai.agents.models.AgentsApiResponseFormat or |
842 | | - ~azure.ai.agents.models.ResponseFormatJsonSchemaType |
| 839 | + :type response_format: Optional[Union[str, |
| 840 | + ~azure.ai.agents.models.AgentsApiResponseFormatMode, |
| 841 | + ~azure.ai.agents.models.AgentsApiResponseFormat, |
| 842 | + ~azure.ai.agents.models.ResponseFormatJsonSchemaType]] |
843 | 843 | :keyword parallel_tool_calls: If True, tools will be invoked in parallel. |
844 | 844 | :type parallel_tool_calls: bool |
845 | 845 | :keyword metadata: Up to 16 key/value pairs for structured metadata on the run. |
@@ -938,10 +938,10 @@ def create_thread_and_process_run( |
938 | 938 | :keyword response_format: Specifies the format for the responses, particularly for tool calls. |
939 | 939 | Can be a string, response format mode, or structured response format object that defines how |
940 | 940 | the agent should structure its outputs. |
941 | | - :type response_format: str or |
942 | | - ~azure.ai.agents.models.AgentsApiResponseFormatMode or |
943 | | - ~azure.ai.agents.models.AgentsApiResponseFormat or |
944 | | - ~azure.ai.agents.models.ResponseFormatJsonSchemaType |
| 941 | + :type response_format: Optional[Union[str, |
| 942 | + ~azure.ai.agents.models.AgentsApiResponseFormatMode, |
| 943 | + ~azure.ai.agents.models.AgentsApiResponseFormat, |
| 944 | + ~azure.ai.agents.models.ResponseFormatJsonSchemaType]] |
945 | 945 | :keyword parallel_tool_calls: If True, allows tool calls to be executed in parallel. |
946 | 946 | :type parallel_tool_calls: bool, optional |
947 | 947 | :keyword metadata: Optional metadata (up to 16 key/value pairs) to attach to the run. |
|
0 commit comments