|
1 | | -# pylint: disable=line-too-long,useless-suppression |
| 1 | +# pylint: disable=line-too-long,useless-suppression,too-many-lines |
2 | 2 | # ------------------------------------ |
3 | 3 | # Copyright (c) Microsoft Corporation. |
4 | 4 | # Licensed under the MIT License. |
@@ -87,7 +87,7 @@ def create_agent( # pylint: disable=arguments-differ |
87 | 87 | tool_resources: Optional[_models.ToolResources] = None, |
88 | 88 | temperature: Optional[float] = None, |
89 | 89 | top_p: Optional[float] = None, |
90 | | - response_format: Optional["_types.AgentsApiResponseFormatOption"] = None, |
| 90 | + response_format: Optional["_types.AgentsResponseFormatOption"] = None, |
91 | 91 | metadata: Optional[Dict[str, str]] = None, |
92 | 92 | **kwargs: Any, |
93 | 93 | ) -> _models.Agent: |
@@ -150,7 +150,7 @@ def create_agent( # pylint: disable=arguments-differ |
150 | 150 | toolset: Optional[_models.ToolSet] = None, |
151 | 151 | temperature: Optional[float] = None, |
152 | 152 | top_p: Optional[float] = None, |
153 | | - response_format: Optional["_types.AgentsApiResponseFormatOption"] = None, |
| 153 | + response_format: Optional["_types.AgentsResponseFormatOption"] = None, |
154 | 154 | metadata: Optional[Dict[str, str]] = None, |
155 | 155 | **kwargs: Any, |
156 | 156 | ) -> _models.Agent: |
@@ -238,7 +238,7 @@ def create_agent( |
238 | 238 | toolset: Optional[_models.ToolSet] = None, |
239 | 239 | temperature: Optional[float] = None, |
240 | 240 | top_p: Optional[float] = None, |
241 | | - response_format: Optional["_types.AgentsApiResponseFormatOption"] = None, |
| 241 | + response_format: Optional["_types.AgentsResponseFormatOption"] = None, |
242 | 242 | metadata: Optional[Dict[str, str]] = None, |
243 | 243 | content_type: str = "application/json", |
244 | 244 | **kwargs: Any, |
@@ -268,7 +268,7 @@ def create_agent( |
268 | 268 | :keyword top_p: Nucleus sampling parameter. |
269 | 269 | :paramtype top_p: Optional[float] |
270 | 270 | :keyword response_format: Response format for tool calls. |
271 | | - :paramtype response_format: Optional["_types.AgentsApiResponseFormatOption"] |
| 271 | + :paramtype response_format: Optional["_types.AgentsResponseFormatOption"] |
272 | 272 | :keyword metadata: Key/value pairs for storing additional information. |
273 | 273 | :paramtype metadata: Optional[Dict[str, str]] |
274 | 274 | :keyword content_type: Content type of the body. |
@@ -320,7 +320,7 @@ def update_agent( # pylint: disable=arguments-differ |
320 | 320 | tool_resources: Optional[_models.ToolResources] = None, |
321 | 321 | temperature: Optional[float] = None, |
322 | 322 | top_p: Optional[float] = None, |
323 | | - response_format: Optional["_types.AgentsApiResponseFormatOption"] = None, |
| 323 | + response_format: Optional["_types.AgentsResponseFormatOption"] = None, |
324 | 324 | metadata: Optional[Dict[str, str]] = None, |
325 | 325 | **kwargs: Any, |
326 | 326 | ) -> _models.Agent: |
@@ -388,7 +388,7 @@ def update_agent( # pylint: disable=arguments-differ |
388 | 388 | toolset: Optional[_models.ToolSet] = None, |
389 | 389 | temperature: Optional[float] = None, |
390 | 390 | top_p: Optional[float] = None, |
391 | | - response_format: Optional["_types.AgentsApiResponseFormatOption"] = None, |
| 391 | + response_format: Optional["_types.AgentsResponseFormatOption"] = None, |
392 | 392 | metadata: Optional[Dict[str, str]] = None, |
393 | 393 | **kwargs: Any, |
394 | 394 | ) -> _models.Agent: |
@@ -488,7 +488,7 @@ def update_agent( |
488 | 488 | toolset: Optional[_models.ToolSet] = None, |
489 | 489 | temperature: Optional[float] = None, |
490 | 490 | top_p: Optional[float] = None, |
491 | | - response_format: Optional["_types.AgentsApiResponseFormatOption"] = None, |
| 491 | + response_format: Optional["_types.AgentsResponseFormatOption"] = None, |
492 | 492 | content_type: str = "application/json", |
493 | 493 | metadata: Optional[Dict[str, str]] = None, |
494 | 494 | **kwargs: Any, |
@@ -698,8 +698,8 @@ def create_thread_and_run( |
698 | 698 | max_prompt_tokens: Optional[int] = None, |
699 | 699 | max_completion_tokens: Optional[int] = None, |
700 | 700 | truncation_strategy: Optional[_models.TruncationObject] = None, |
701 | | - tool_choice: Optional["_types.AgentsApiToolChoiceOption"] = None, |
702 | | - response_format: Optional["_types.AgentsApiResponseFormatOption"] = None, |
| 701 | + tool_choice: Optional["_types.AgentsToolChoiceOption"] = None, |
| 702 | + response_format: Optional["_types.AgentsResponseFormatOption"] = None, |
703 | 703 | parallel_tool_calls: Optional[bool] = None, |
704 | 704 | metadata: Optional[Dict[str, str]] = None, |
705 | 705 | **kwargs: Any, |
@@ -734,7 +734,7 @@ def create_thread_and_run( |
734 | 734 | :type truncation_strategy: ~azure.ai.agents.models.TruncationObject |
735 | 735 | :keyword tool_choice: Controls which tool the model will call. |
736 | 736 | :type tool_choice: str or |
737 | | - ~azure.ai.agents.models.AgentsApiToolChoiceOptionMode or |
| 737 | + ~azure.ai.agents.models.AgentsToolChoiceOptionMode or |
738 | 738 | ~azure.ai.agents.models.AgentsNamedToolChoice |
739 | 739 | :keyword response_format: Specifies the format the model must output. |
740 | 740 | :type response_format: str or |
@@ -798,8 +798,8 @@ def create_thread_and_run( # type: ignore |
798 | 798 | max_prompt_tokens: Optional[int] = None, |
799 | 799 | max_completion_tokens: Optional[int] = None, |
800 | 800 | truncation_strategy: Optional[_models.TruncationObject] = None, |
801 | | - tool_choice: Optional[_types.AgentsApiToolChoiceOption] = None, |
802 | | - response_format: Optional[_types.AgentsApiResponseFormatOption] = None, |
| 801 | + tool_choice: Optional[_types.AgentsToolChoiceOption] = None, |
| 802 | + response_format: Optional[_types.AgentsResponseFormatOption] = None, |
803 | 803 | parallel_tool_calls: Optional[bool] = None, |
804 | 804 | metadata: Optional[Dict[str, str]] = None, |
805 | 805 | **kwargs: Any, |
@@ -836,7 +836,7 @@ def create_thread_and_run( # type: ignore |
836 | 836 | :type truncation_strategy: ~azure.ai.agents.models.TruncationObject |
837 | 837 | :keyword tool_choice: Controls which tool the model will call. |
838 | 838 | :type tool_choice: str or |
839 | | - ~azure.ai.agents.models.AgentsApiToolChoiceOptionMode or |
| 839 | + ~azure.ai.agents.models.AgentsToolChoiceOptionMode or |
840 | 840 | ~azure.ai.agents.models.AgentsNamedToolChoice |
841 | 841 | :keyword response_format: Specifies the format the model must output. |
842 | 842 | :type response_format: str or |
@@ -904,8 +904,8 @@ def create_thread_and_process_run( |
904 | 904 | max_prompt_tokens: Optional[int] = None, |
905 | 905 | max_completion_tokens: Optional[int] = None, |
906 | 906 | truncation_strategy: Optional[_models.TruncationObject] = None, |
907 | | - tool_choice: Optional["_types.AgentsApiToolChoiceOption"] = None, |
908 | | - response_format: Optional["_types.AgentsApiResponseFormatOption"] = None, |
| 907 | + tool_choice: Optional["_types.AgentsToolChoiceOption"] = None, |
| 908 | + response_format: Optional["_types.AgentsResponseFormatOption"] = None, |
909 | 909 | parallel_tool_calls: Optional[bool] = None, |
910 | 910 | metadata: Optional[Dict[str, str]] = None, |
911 | 911 | sleep_interval: int = 1, |
@@ -937,9 +937,9 @@ def create_thread_and_process_run( |
937 | 937 | :keyword truncation_strategy: Strategy for dropping old messages when context window overflows. |
938 | 938 | :type truncation_strategy: ~azure.ai.agents.models.TruncationObject, optional |
939 | 939 | :keyword tool_choice: Controls which tool (if any) the model is allowed to call. |
940 | | - :type tool_choice: str or ~azure.ai.agents.models.AgentsApiToolChoiceOption, optional |
| 940 | + :type tool_choice: str or ~azure.ai.agents.models.AgentsToolChoiceOption, optional |
941 | 941 | :keyword response_format: Specifies the required format for the model’s output. |
942 | | - :type response_format: str or ~azure.ai.agents.models.AgentsApiResponseFormatOption, optional |
| 942 | + :type response_format: str or ~azure.ai.agents.models.AgentsResponseFormatOption, optional |
943 | 943 | :keyword parallel_tool_calls: If True, allows tool calls to be executed in parallel. |
944 | 944 | :type parallel_tool_calls: bool, optional |
945 | 945 | :keyword metadata: Optional metadata (up to 16 key/value pairs) to attach to the run. |
|
0 commit comments