@@ -115,6 +115,7 @@ async def create( # pylint: disable=arguments-differ
115115 additional_instructions : Optional [str ] = None ,
116116 additional_messages : Optional [List [_models .ThreadMessageOptions ]] = None ,
117117 tools : Optional [List [_models .ToolDefinition ]] = None ,
118+ tool_resources : Optional [_models .ToolResources ] = None ,
118119 temperature : Optional [float ] = None ,
119120 top_p : Optional [float ] = None ,
120121 max_prompt_tokens : Optional [int ] = None ,
@@ -156,6 +157,9 @@ async def create( # pylint: disable=arguments-differ
156157 :keyword tools: The overridden list of enabled tools that the agent should use to run the
157158 thread. Default value is None.
158159 :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
159163 :keyword temperature: What sampling temperature to use, between 0 and 2. Higher values like 0.8
160164 will make the output
161165 more random, while lower values like 0.2 will make it more focused and deterministic. Default
@@ -281,6 +285,7 @@ async def create(
281285 additional_instructions : Optional [str ] = None ,
282286 additional_messages : Optional [List [_models .ThreadMessageOptions ]] = None ,
283287 tools : Optional [List [_models .ToolDefinition ]] = None ,
288+ tool_resources : Optional [_models .ToolResources ] = None ,
284289 temperature : Optional [float ] = None ,
285290 top_p : Optional [float ] = None ,
286291 max_prompt_tokens : Optional [int ] = None ,
@@ -321,6 +326,9 @@ async def create(
321326 :keyword tools: The overridden list of enabled tools that the agent should use to run the
322327 thread. Default value is None.
323328 :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
324332 :keyword temperature: What sampling temperature to use, between 0 and 2. Higher values like 0.8
325333 will make the output
326334 more random, while lower values like 0.2 will make it more focused and deterministic. Default
@@ -389,6 +397,7 @@ async def create(
389397 additional_instructions = additional_instructions ,
390398 additional_messages = additional_messages ,
391399 tools = tools ,
400+ tool_resources = tool_resources ,
392401 stream_parameter = False ,
393402 stream = False ,
394403 temperature = temperature ,
@@ -530,6 +539,7 @@ async def create_and_process(
530539 additional_instructions = additional_instructions ,
531540 additional_messages = additional_messages ,
532541 tools = toolset .definitions if toolset else None ,
542+ tool_resources = toolset .resources if toolset else None ,
533543 temperature = temperature ,
534544 top_p = top_p ,
535545 max_prompt_tokens = max_prompt_tokens ,
@@ -599,6 +609,7 @@ async def stream(
599609 additional_instructions : Optional [str ] = None ,
600610 additional_messages : Optional [List [_models .ThreadMessageOptions ]] = None ,
601611 tools : Optional [List [_models .ToolDefinition ]] = None ,
612+ tool_resources : Optional [_models .ToolResources ] = None ,
602613 temperature : Optional [float ] = None ,
603614 top_p : Optional [float ] = None ,
604615 max_prompt_tokens : Optional [int ] = None ,
@@ -641,6 +652,9 @@ async def stream(
641652 :keyword tools: The overridden list of enabled tools that the agent should use to run the
642653 thread. Default value is None.
643654 :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
644658 :keyword temperature: What sampling temperature to use, between 0 and 2. Higher values like 0.8
645659 will make the output
646660 more random, while lower values like 0.2 will make it more focused and deterministic. Default
@@ -710,6 +724,7 @@ async def stream(
710724 additional_instructions : Optional [str ] = None ,
711725 additional_messages : Optional [List [_models .ThreadMessageOptions ]] = None ,
712726 tools : Optional [List [_models .ToolDefinition ]] = None ,
727+ tool_resources : Optional [_models .ToolResources ] = None ,
713728 temperature : Optional [float ] = None ,
714729 top_p : Optional [float ] = None ,
715730 max_prompt_tokens : Optional [int ] = None ,
@@ -752,6 +767,9 @@ async def stream(
752767 :keyword tools: The overridden list of enabled tools that the agent should use to run the
753768 thread. Default value is None.
754769 :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
755773 :keyword temperature: What sampling temperature to use, between 0 and 2. Higher values like 0.8
756774 will make the output
757775 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]
890908 additional_instructions : Optional [str ] = None ,
891909 additional_messages : Optional [List [_models .ThreadMessageOptions ]] = None ,
892910 tools : Optional [List [_models .ToolDefinition ]] = None ,
911+ tool_resources : Optional [_models .ToolResources ] = None ,
893912 temperature : Optional [float ] = None ,
894913 top_p : Optional [float ] = None ,
895914 max_prompt_tokens : Optional [int ] = None ,
@@ -933,6 +952,9 @@ async def stream( # pyright: ignore[reportInconsistentOverload]
933952 :keyword tools: The overridden list of enabled tools that the agent should use to run the
934953 thread. Default value is None.
935954 :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
936958 :keyword temperature: What sampling temperature to use, between 0 and 2. Higher values like 0.8
937959 will make the output
938960 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]
10041026 additional_instructions = additional_instructions ,
10051027 additional_messages = additional_messages ,
10061028 tools = tools ,
1029+ tool_resources = tool_resources ,
10071030 stream_parameter = True ,
10081031 stream = True ,
10091032 temperature = temperature ,
@@ -1373,7 +1396,7 @@ async def upload(
13731396 :paramtype file: Optional[FileType]
13741397 :keyword file_path: Path to the file. Required if `body` and `purpose` are not provided.
13751398 :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".
13771400 Required if `body` and `file` are not provided.
13781401 :paramtype purpose: Union[str, _models.FilePurpose, None]
13791402 :keyword filename: The name of the file.
@@ -1513,7 +1536,7 @@ async def upload_and_poll(
15131536 :paramtype file: Optional[FileType]
15141537 :keyword file_path: Path to the file. Required if `body` and `purpose` are not provided.
15151538 :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".
15171540 Required if `body` and `file` are not provided.
15181541 :paramtype purpose: Union[str, _models.FilePurpose, None]
15191542 :keyword filename: The name of the file.
0 commit comments