@@ -115,6 +115,7 @@ async def create( # pylint: disable=arguments-differ
115
115
additional_instructions : Optional [str ] = None ,
116
116
additional_messages : Optional [List [_models .ThreadMessageOptions ]] = None ,
117
117
tools : Optional [List [_models .ToolDefinition ]] = None ,
118
+ tool_resources : Optional [_models .ToolResources ] = None ,
118
119
temperature : Optional [float ] = None ,
119
120
top_p : Optional [float ] = None ,
120
121
max_prompt_tokens : Optional [int ] = None ,
@@ -156,6 +157,9 @@ async def create( # pylint: disable=arguments-differ
156
157
:keyword tools: The overridden list of enabled tools that the agent should use to run the
157
158
thread. Default value is None.
158
159
:paramtype tools: list[~azure.ai.agents.models.ToolDefinition]
160
+ :keyword tool_resources: The overridden enabled tool resources that the agent should use to run
161
+ the thread. Default value is None.
162
+ :paramtype tool_resources: ~azure.ai.agents.models.ToolResources
159
163
:keyword temperature: What sampling temperature to use, between 0 and 2. Higher values like 0.8
160
164
will make the output
161
165
more random, while lower values like 0.2 will make it more focused and deterministic. Default
@@ -281,6 +285,7 @@ async def create(
281
285
additional_instructions : Optional [str ] = None ,
282
286
additional_messages : Optional [List [_models .ThreadMessageOptions ]] = None ,
283
287
tools : Optional [List [_models .ToolDefinition ]] = None ,
288
+ tool_resources : Optional [_models .ToolResources ] = None ,
284
289
temperature : Optional [float ] = None ,
285
290
top_p : Optional [float ] = None ,
286
291
max_prompt_tokens : Optional [int ] = None ,
@@ -321,6 +326,9 @@ async def create(
321
326
:keyword tools: The overridden list of enabled tools that the agent should use to run the
322
327
thread. Default value is None.
323
328
:paramtype tools: list[~azure.ai.agents.models.ToolDefinition]
329
+ :keyword tool_resources: The overridden enabled tool resources that the agent should use to run
330
+ the thread. Default value is None.
331
+ :paramtype tool_resources: ~azure.ai.agents.models.ToolResources
324
332
:keyword temperature: What sampling temperature to use, between 0 and 2. Higher values like 0.8
325
333
will make the output
326
334
more random, while lower values like 0.2 will make it more focused and deterministic. Default
@@ -389,6 +397,7 @@ async def create(
389
397
additional_instructions = additional_instructions ,
390
398
additional_messages = additional_messages ,
391
399
tools = tools ,
400
+ tool_resources = tool_resources ,
392
401
stream_parameter = False ,
393
402
stream = False ,
394
403
temperature = temperature ,
@@ -530,6 +539,7 @@ async def create_and_process(
530
539
additional_instructions = additional_instructions ,
531
540
additional_messages = additional_messages ,
532
541
tools = toolset .definitions if toolset else None ,
542
+ tool_resources = toolset .resources if toolset else None ,
533
543
temperature = temperature ,
534
544
top_p = top_p ,
535
545
max_prompt_tokens = max_prompt_tokens ,
@@ -599,6 +609,7 @@ async def stream(
599
609
additional_instructions : Optional [str ] = None ,
600
610
additional_messages : Optional [List [_models .ThreadMessageOptions ]] = None ,
601
611
tools : Optional [List [_models .ToolDefinition ]] = None ,
612
+ tool_resources : Optional [_models .ToolResources ] = None ,
602
613
temperature : Optional [float ] = None ,
603
614
top_p : Optional [float ] = None ,
604
615
max_prompt_tokens : Optional [int ] = None ,
@@ -641,6 +652,9 @@ async def stream(
641
652
:keyword tools: The overridden list of enabled tools that the agent should use to run the
642
653
thread. Default value is None.
643
654
:paramtype tools: list[~azure.ai.agents.models.ToolDefinition]
655
+ :keyword tool_resources: The overridden enabled tool resources that the agent should use to run
656
+ the thread. Default value is None.
657
+ :paramtype tool_resources: ~azure.ai.agents.models.ToolResources
644
658
:keyword temperature: What sampling temperature to use, between 0 and 2. Higher values like 0.8
645
659
will make the output
646
660
more random, while lower values like 0.2 will make it more focused and deterministic. Default
@@ -710,6 +724,7 @@ async def stream(
710
724
additional_instructions : Optional [str ] = None ,
711
725
additional_messages : Optional [List [_models .ThreadMessageOptions ]] = None ,
712
726
tools : Optional [List [_models .ToolDefinition ]] = None ,
727
+ tool_resources : Optional [_models .ToolResources ] = None ,
713
728
temperature : Optional [float ] = None ,
714
729
top_p : Optional [float ] = None ,
715
730
max_prompt_tokens : Optional [int ] = None ,
@@ -752,6 +767,9 @@ async def stream(
752
767
:keyword tools: The overridden list of enabled tools that the agent should use to run the
753
768
thread. Default value is None.
754
769
:paramtype tools: list[~azure.ai.agents.models.ToolDefinition]
770
+ :keyword tool_resources: The overridden enabled tool resources that the agent should use to run
771
+ the thread. Default value is None.
772
+ :paramtype tool_resources: ~azure.ai.agents.models.ToolResources
755
773
:keyword temperature: What sampling temperature to use, between 0 and 2. Higher values like 0.8
756
774
will make the output
757
775
more random, while lower values like 0.2 will make it more focused and deterministic. Default
@@ -890,6 +908,7 @@ async def stream( # pyright: ignore[reportInconsistentOverload]
890
908
additional_instructions : Optional [str ] = None ,
891
909
additional_messages : Optional [List [_models .ThreadMessageOptions ]] = None ,
892
910
tools : Optional [List [_models .ToolDefinition ]] = None ,
911
+ tool_resources : Optional [_models .ToolResources ] = None ,
893
912
temperature : Optional [float ] = None ,
894
913
top_p : Optional [float ] = None ,
895
914
max_prompt_tokens : Optional [int ] = None ,
@@ -933,6 +952,9 @@ async def stream( # pyright: ignore[reportInconsistentOverload]
933
952
:keyword tools: The overridden list of enabled tools that the agent should use to run the
934
953
thread. Default value is None.
935
954
:paramtype tools: list[~azure.ai.agents.models.ToolDefinition]
955
+ :keyword tool_resources: The overridden enabled tool resources that the agent should use to run
956
+ the thread. Default value is None.
957
+ :paramtype tool_resources: ~azure.ai.agents.models.ToolResources
936
958
:keyword temperature: What sampling temperature to use, between 0 and 2. Higher values like 0.8
937
959
will make the output
938
960
more random, while lower values like 0.2 will make it more focused and deterministic. Default
@@ -1004,6 +1026,7 @@ async def stream( # pyright: ignore[reportInconsistentOverload]
1004
1026
additional_instructions = additional_instructions ,
1005
1027
additional_messages = additional_messages ,
1006
1028
tools = tools ,
1029
+ tool_resources = tool_resources ,
1007
1030
stream_parameter = True ,
1008
1031
stream = True ,
1009
1032
temperature = temperature ,
@@ -1373,7 +1396,7 @@ async def upload(
1373
1396
:paramtype file: Optional[FileType]
1374
1397
:keyword file_path: Path to the file. Required if `body` and `purpose` are not provided.
1375
1398
:paramtype file_path: Optional[str]
1376
- :keyword purpose: Known values are: "assistants", "assistants_output", and "vision".
1399
+ :keyword purpose: Known values are: "assistants", "assistants_output", and "vision".
1377
1400
Required if `body` and `file` are not provided.
1378
1401
:paramtype purpose: Union[str, _models.FilePurpose, None]
1379
1402
:keyword filename: The name of the file.
@@ -1513,7 +1536,7 @@ async def upload_and_poll(
1513
1536
:paramtype file: Optional[FileType]
1514
1537
:keyword file_path: Path to the file. Required if `body` and `purpose` are not provided.
1515
1538
:paramtype file_path: Optional[str]
1516
- :keyword purpose: Known values are: "assistants", "assistants_output", and "vision".
1539
+ :keyword purpose: Known values are: "assistants", "assistants_output", and "vision".
1517
1540
Required if `body` and `file` are not provided.
1518
1541
:paramtype purpose: Union[str, _models.FilePurpose, None]
1519
1542
:keyword filename: The name of the file.
0 commit comments