@@ -806,6 +806,46 @@ def __init__(self, *args: Any, **kwargs: Any) -> None:
806
806
super ().__init__ (* args , ** kwargs )
807
807
808
808
809
+ class AzureFunctionToolCallDetails (_Model ):
810
+ """The Azure function call description. All the fields are present in the completed run step,
811
+ however
812
+ only some fields are present in the RunStepDeltaAzureFunctionToolCall.
813
+
814
+ :ivar name: The Azure function name.
815
+ :vartype name: str
816
+ :ivar arguments: JSON serialized function arguments.
817
+ :vartype arguments: str
818
+ :ivar output: The function output.
819
+ :vartype output: str
820
+ """
821
+
822
+ name : Optional [str ] = rest_field (visibility = ["read" , "create" , "update" , "delete" , "query" ])
823
+ """The Azure function name."""
824
+ arguments : Optional [str ] = rest_field (visibility = ["read" , "create" , "update" , "delete" , "query" ])
825
+ """JSON serialized function arguments."""
826
+ output : Optional [str ] = rest_field (visibility = ["read" , "create" , "update" , "delete" , "query" ])
827
+ """The function output."""
828
+
829
+ @overload
830
+ def __init__ (
831
+ self ,
832
+ * ,
833
+ name : Optional [str ] = None ,
834
+ arguments : Optional [str ] = None ,
835
+ output : Optional [str ] = None ,
836
+ ) -> None : ...
837
+
838
+ @overload
839
+ def __init__ (self , mapping : Mapping [str , Any ]) -> None :
840
+ """
841
+ :param mapping: raw JSON to initialize the model.
842
+ :type mapping: Mapping[str, Any]
843
+ """
844
+
845
+ def __init__ (self , * args : Any , ** kwargs : Any ) -> None :
846
+ super ().__init__ (* args , ** kwargs )
847
+
848
+
809
849
class AzureFunctionToolDefinition (ToolDefinition , discriminator = "azure_function" ):
810
850
"""The input definition information for a azure function tool as used to configure an agent.
811
851
@@ -4336,8 +4376,8 @@ class RunStepToolCall(_Model):
4336
4376
existing run.
4337
4377
4338
4378
You probably want to use the sub-classes and not this class directly. Known sub-classes are:
4339
- RunStepAzureAISearchToolCall, RunStepBingCustomSearchToolCall, RunStepBingGroundingToolCall ,
4340
- RunStepBrowserAutomationToolCall, RunStepCodeInterpreterToolCall,
4379
+ RunStepAzureAISearchToolCall, RunStepAzureFunctionToolCall, RunStepBingCustomSearchToolCall ,
4380
+ RunStepBingGroundingToolCall, RunStepBrowserAutomationToolCall, RunStepCodeInterpreterToolCall,
4341
4381
RunStepConnectedAgentToolCall, RunStepDeepResearchToolCall, RunStepMicrosoftFabricToolCall,
4342
4382
RunStepFileSearchToolCall, RunStepFunctionToolCall, RunStepMcpToolCall, RunStepOpenAPIToolCall,
4343
4383
RunStepSharepointToolCall
@@ -4414,27 +4454,67 @@ def __init__(self, *args: Any, **kwargs: Any) -> None:
4414
4454
super ().__init__ (* args , type = "azure_ai_search" , ** kwargs )
4415
4455
4416
4456
4457
+ class RunStepAzureFunctionToolCall (RunStepToolCall , discriminator = "azure_function" ):
4458
+ """A record of a call to an Azure Function tool.
4459
+
4460
+ :ivar id: The ID of the tool call. This ID must be referenced when you submit tool outputs.
4461
+ Required.
4462
+ :vartype id: str
4463
+ :ivar type: The object type, which is always 'azure_function'. Required. Default value is
4464
+ "azure_function".
4465
+ :vartype type: str
4466
+ :ivar azure_function: The description of an Azure function call. Required.
4467
+ :vartype azure_function: ~azure.ai.agents.models.AzureFunctionToolCallDetails
4468
+ """
4469
+
4470
+ type : Literal ["azure_function" ] = rest_discriminator (name = "type" , visibility = ["read" , "create" , "update" , "delete" , "query" ]) # type: ignore
4471
+ """The object type, which is always 'azure_function'. Required. Default value is
4472
+ \" azure_function\" ."""
4473
+ azure_function : "_models.AzureFunctionToolCallDetails" = rest_field (
4474
+ visibility = ["read" , "create" , "update" , "delete" , "query" ]
4475
+ )
4476
+ """The description of an Azure function call. Required."""
4477
+
4478
+ @overload
4479
+ def __init__ (
4480
+ self ,
4481
+ * ,
4482
+ id : str , # pylint: disable=redefined-builtin
4483
+ azure_function : "_models.AzureFunctionToolCallDetails" ,
4484
+ ) -> None : ...
4485
+
4486
+ @overload
4487
+ def __init__ (self , mapping : Mapping [str , Any ]) -> None :
4488
+ """
4489
+ :param mapping: raw JSON to initialize the model.
4490
+ :type mapping: Mapping[str, Any]
4491
+ """
4492
+
4493
+ def __init__ (self , * args : Any , ** kwargs : Any ) -> None :
4494
+ super ().__init__ (* args , type = "azure_function" , ** kwargs )
4495
+
4496
+
4417
4497
class RunStepBingCustomSearchToolCall (RunStepToolCall , discriminator = "bing_custom_search" ):
4418
- """A record of a call to a bing custom search tool, issued by the model in evaluation of a defined
4498
+ """A record of a call to a Bing Custom Search tool, issued by the model in evaluation of a defined
4419
4499
tool, that represents
4420
- executed search with bing custom search .
4500
+ executed search with Bing Custom Search .
4421
4501
4422
4502
:ivar id: The ID of the tool call. This ID must be referenced when you submit tool outputs.
4423
4503
Required.
4424
4504
:vartype id: str
4425
4505
:ivar type: The object type, which is always 'bing_custom_search'. Required. Default value is
4426
4506
"bing_custom_search".
4427
4507
:vartype type: str
4428
- :ivar bing_custom_search: The dictionary with request and response from Custom Bing Grounding
4429
- search tool. Required.
4508
+ :ivar bing_custom_search: The dictionary with request and response from Bing Custom Search
4509
+ tool. Required.
4430
4510
:vartype bing_custom_search: dict[str, str]
4431
4511
"""
4432
4512
4433
4513
type : Literal ["bing_custom_search" ] = rest_discriminator (name = "type" , visibility = ["read" , "create" , "update" , "delete" , "query" ]) # type: ignore
4434
4514
"""The object type, which is always 'bing_custom_search'. Required. Default value is
4435
4515
\" bing_custom_search\" ."""
4436
4516
bing_custom_search : Dict [str , str ] = rest_field (visibility = ["read" , "create" , "update" , "delete" , "query" ])
4437
- """The dictionary with request and response from Custom Bing Grounding search tool. Required."""
4517
+ """The dictionary with request and response from Bing Custom Search tool. Required."""
4438
4518
4439
4519
@overload
4440
4520
def __init__ (
@@ -4987,11 +5067,11 @@ class RunStepDeltaToolCall(_Model):
4987
5067
call details.
4988
5068
4989
5069
You probably want to use the sub-classes and not this class directly. Known sub-classes are:
4990
- RunStepDeltaAzureAISearchToolCall, RunStepDeltaCustomBingGroundingToolCall ,
4991
- RunStepDeltaBingGroundingToolCall, RunStepDeltaCodeInterpreterToolCall ,
4992
- RunStepDeltaConnectedAgentToolCall, RunStepDeltaDeepResearchToolCall ,
4993
- RunStepDeltaFileSearchToolCall, RunStepDeltaFunctionToolCall, RunStepDeltaMcpToolCall ,
4994
- RunStepDeltaOpenAPIToolCall
5070
+ RunStepDeltaAzureAISearchToolCall, RunStepDeltaAzureFunctionToolCall ,
5071
+ RunStepDeltaCustomBingGroundingToolCall, RunStepDeltaBingGroundingToolCall ,
5072
+ RunStepDeltaCodeInterpreterToolCall, RunStepDeltaConnectedAgentToolCall ,
5073
+ RunStepDeltaDeepResearchToolCall, RunStepDeltaFileSearchToolCall, RunStepDeltaFunctionToolCall ,
5074
+ RunStepDeltaMcpToolCall, RunStepDeltaOpenAPIToolCall
4995
5075
4996
5076
:ivar index: The index of the tool call detail in the run step's tool_calls array. Required.
4997
5077
:vartype index: int
@@ -5071,6 +5151,48 @@ def __init__(self, *args: Any, **kwargs: Any) -> None:
5071
5151
super ().__init__ (* args , type = "azure_ai_search" , ** kwargs )
5072
5152
5073
5153
5154
+ class RunStepDeltaAzureFunctionToolCall (RunStepDeltaToolCall , discriminator = "azure_function" ):
5155
+ """Represents the Azure Function tool call in a streaming run step.
5156
+
5157
+ :ivar index: The index of the tool call detail in the run step's tool_calls array. Required.
5158
+ :vartype index: int
5159
+ :ivar id: The ID of the tool call, used when submitting outputs to the run. Required.
5160
+ :vartype id: str
5161
+ :ivar type: The object type, which is always 'azure_function'. Required. Default value is
5162
+ "azure_function".
5163
+ :vartype type: str
5164
+ :ivar azure_function: Partial description of an Azure function call. Required.
5165
+ :vartype azure_function: ~azure.ai.agents.models.AzureFunctionToolCallDetails
5166
+ """
5167
+
5168
+ type : Literal ["azure_function" ] = rest_discriminator (name = "type" , visibility = ["read" , "create" , "update" , "delete" , "query" ]) # type: ignore
5169
+ """The object type, which is always 'azure_function'. Required. Default value is
5170
+ \" azure_function\" ."""
5171
+ azure_function : "_models.AzureFunctionToolCallDetails" = rest_field (
5172
+ visibility = ["read" , "create" , "update" , "delete" , "query" ]
5173
+ )
5174
+ """Partial description of an Azure function call. Required."""
5175
+
5176
+ @overload
5177
+ def __init__ (
5178
+ self ,
5179
+ * ,
5180
+ index : int ,
5181
+ id : str , # pylint: disable=redefined-builtin
5182
+ azure_function : "_models.AzureFunctionToolCallDetails" ,
5183
+ ) -> None : ...
5184
+
5185
+ @overload
5186
+ def __init__ (self , mapping : Mapping [str , Any ]) -> None :
5187
+ """
5188
+ :param mapping: raw JSON to initialize the model.
5189
+ :type mapping: Mapping[str, Any]
5190
+ """
5191
+
5192
+ def __init__ (self , * args : Any , ** kwargs : Any ) -> None :
5193
+ super ().__init__ (* args , type = "azure_function" , ** kwargs )
5194
+
5195
+
5074
5196
class RunStepDeltaBingGroundingToolCall (RunStepDeltaToolCall , discriminator = "bing_grounding" ):
5075
5197
"""Represents the bing grounding tool call in a streaming run step.
5076
5198
@@ -5423,7 +5545,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None:
5423
5545
5424
5546
5425
5547
class RunStepDeltaCustomBingGroundingToolCall (RunStepDeltaToolCall , discriminator = "bing_custom_search" ):
5426
- """Represents the Custom Bing Grounding tool call in a streaming run step.
5548
+ """Represents the Bing Custom Search tool call in a streaming run step.
5427
5549
5428
5550
:ivar index: The index of the tool call detail in the run step's tool_calls array. Required.
5429
5551
:vartype index: int
@@ -5432,16 +5554,16 @@ class RunStepDeltaCustomBingGroundingToolCall(RunStepDeltaToolCall, discriminato
5432
5554
:ivar type: The object type, which is always 'bing_custom_search'. Required. Default value is
5433
5555
"bing_custom_search".
5434
5556
:vartype type: str
5435
- :ivar bing_custom_search: The dictionary with request and response from Custom Bing Grounding
5436
- search tool. Required.
5557
+ :ivar bing_custom_search: The dictionary with request and response from Bing Custom Search
5558
+ tool. Required.
5437
5559
:vartype bing_custom_search: dict[str, str]
5438
5560
"""
5439
5561
5440
5562
type : Literal ["bing_custom_search" ] = rest_discriminator (name = "type" , visibility = ["read" , "create" , "update" , "delete" , "query" ]) # type: ignore
5441
5563
"""The object type, which is always 'bing_custom_search'. Required. Default value is
5442
5564
\" bing_custom_search\" ."""
5443
5565
bing_custom_search : Dict [str , str ] = rest_field (visibility = ["read" , "create" , "update" , "delete" , "query" ])
5444
- """The dictionary with request and response from Custom Bing Grounding search tool. Required."""
5566
+ """The dictionary with request and response from Bing Custom Search tool. Required."""
5445
5567
5446
5568
@overload
5447
5569
def __init__ (
0 commit comments