@@ -4149,9 +4149,10 @@ class RunStepToolCall(_Model):
4149
4149
4150
4150
You probably want to use the sub-classes and not this class directly. Known sub-classes are:
4151
4151
RunStepAzureAISearchToolCall, RunStepBingCustomSearchToolCall, RunStepBingGroundingToolCall,
4152
- RunStepBrowserAutomationToolCall, RunStepCodeInterpreterToolCall, RunStepDeepResearchToolCall,
4153
- RunStepMicrosoftFabricToolCall, RunStepFileSearchToolCall, RunStepFunctionToolCall,
4154
- RunStepMcpToolCall, RunStepOpenAPIToolCall, RunStepSharepointToolCall
4152
+ RunStepBrowserAutomationToolCall, RunStepCodeInterpreterToolCall,
4153
+ RunStepConnectedAgentToolCall, RunStepDeepResearchToolCall, RunStepMicrosoftFabricToolCall,
4154
+ RunStepFileSearchToolCall, RunStepFunctionToolCall, RunStepMcpToolCall, RunStepOpenAPIToolCall,
4155
+ RunStepSharepointToolCall
4155
4156
4156
4157
:ivar type: The object type. Required. Default value is None.
4157
4158
:vartype type: str
@@ -4591,6 +4592,101 @@ def __init__(self, *args: Any, **kwargs: Any) -> None:
4591
4592
super ().__init__ (* args , ** kwargs )
4592
4593
4593
4594
4595
+ class RunStepConnectedAgent (_Model ):
4596
+ """The detailed information about connected agent tool call.
4597
+
4598
+ :ivar name: The name of connected agent.
4599
+ :vartype name: str
4600
+ :ivar arguments: The JSON serialized query to the connected agent.
4601
+ :vartype arguments: str
4602
+ :ivar output: The tool output.
4603
+ :vartype output: str
4604
+ :ivar run_id: The run ID used by the connected agent.
4605
+ :vartype run_id: str
4606
+ :ivar thread_id: The thread ID used by the connected agent.
4607
+ :vartype thread_id: str
4608
+ :ivar agent_id: The ID of a connected agent.
4609
+ :vartype agent_id: str
4610
+ """
4611
+
4612
+ name : Optional [str ] = rest_field (visibility = ["read" , "create" , "update" , "delete" , "query" ])
4613
+ """The name of connected agent."""
4614
+ arguments : Optional [str ] = rest_field (visibility = ["read" , "create" , "update" , "delete" , "query" ])
4615
+ """The JSON serialized query to the connected agent."""
4616
+ output : Optional [str ] = rest_field (visibility = ["read" , "create" , "update" , "delete" , "query" ])
4617
+ """The tool output."""
4618
+ run_id : Optional [str ] = rest_field (visibility = ["read" , "create" , "update" , "delete" , "query" ])
4619
+ """The run ID used by the connected agent."""
4620
+ thread_id : Optional [str ] = rest_field (visibility = ["read" , "create" , "update" , "delete" , "query" ])
4621
+ """The thread ID used by the connected agent."""
4622
+ agent_id : Optional [str ] = rest_field (
4623
+ name = "assistant_id" , visibility = ["read" , "create" , "update" , "delete" , "query" ]
4624
+ )
4625
+ """The ID of a connected agent."""
4626
+
4627
+ @overload
4628
+ def __init__ (
4629
+ self ,
4630
+ * ,
4631
+ name : Optional [str ] = None ,
4632
+ arguments : Optional [str ] = None ,
4633
+ output : Optional [str ] = None ,
4634
+ run_id : Optional [str ] = None ,
4635
+ thread_id : Optional [str ] = None ,
4636
+ agent_id : Optional [str ] = None ,
4637
+ ) -> None : ...
4638
+
4639
+ @overload
4640
+ def __init__ (self , mapping : Mapping [str , Any ]) -> None :
4641
+ """
4642
+ :param mapping: raw JSON to initialize the model.
4643
+ :type mapping: Mapping[str, Any]
4644
+ """
4645
+
4646
+ def __init__ (self , * args : Any , ** kwargs : Any ) -> None :
4647
+ super ().__init__ (* args , ** kwargs )
4648
+
4649
+
4650
+ class RunStepConnectedAgentToolCall (RunStepToolCall , discriminator = "connected_agent" ):
4651
+ """A record of a call to the connected agent.
4652
+
4653
+ :ivar id: The ID of the tool call. This ID must be referenced when you submit tool outputs.
4654
+ Required.
4655
+ :vartype id: str
4656
+ :ivar type: The object type, which is always 'connected_agent'. Required. Default value is
4657
+ "connected_agent".
4658
+ :vartype type: str
4659
+ :ivar connected_agent: The connected agent step information. Required.
4660
+ :vartype connected_agent: ~azure.ai.agents.models.RunStepConnectedAgent
4661
+ """
4662
+
4663
+ type : Literal ["connected_agent" ] = rest_discriminator (name = "type" , visibility = ["read" , "create" , "update" , "delete" , "query" ]) # type: ignore
4664
+ """The object type, which is always 'connected_agent'. Required. Default value is
4665
+ \" connected_agent\" ."""
4666
+ connected_agent : "_models.RunStepConnectedAgent" = rest_field (
4667
+ visibility = ["read" , "create" , "update" , "delete" , "query" ]
4668
+ )
4669
+ """The connected agent step information. Required."""
4670
+
4671
+ @overload
4672
+ def __init__ (
4673
+ self ,
4674
+ * ,
4675
+ id : str , # pylint: disable=redefined-builtin
4676
+ connected_agent : "_models.RunStepConnectedAgent" ,
4677
+ ) -> None : ...
4678
+
4679
+ @overload
4680
+ def __init__ (self , mapping : Mapping [str , Any ]) -> None :
4681
+ """
4682
+ :param mapping: raw JSON to initialize the model.
4683
+ :type mapping: Mapping[str, Any]
4684
+ """
4685
+
4686
+ def __init__ (self , * args : Any , ** kwargs : Any ) -> None :
4687
+ super ().__init__ (* args , type = "connected_agent" , ** kwargs )
4688
+
4689
+
4594
4690
class RunStepDeepResearchToolCall (RunStepToolCall , discriminator = "deep_research" ):
4595
4691
"""A record of a call to a Deep Research tool, issued by the model in evaluation of a defined
4596
4692
tool, that represents
@@ -4702,9 +4798,9 @@ class RunStepDeltaToolCall(_Model):
4702
4798
4703
4799
You probably want to use the sub-classes and not this class directly. Known sub-classes are:
4704
4800
RunStepDeltaAzureAISearchToolCall, RunStepDeltaBingGroundingToolCall,
4705
- RunStepDeltaCodeInterpreterToolCall, RunStepDeltaDeepResearchToolCall ,
4706
- RunStepDeltaFileSearchToolCall, RunStepDeltaFunctionToolCall, RunStepDeltaMcpToolCall ,
4707
- RunStepDeltaOpenAPIToolCall
4801
+ RunStepDeltaCodeInterpreterToolCall, RunStepDeltaConnectedAgentToolCall ,
4802
+ RunStepDeltaDeepResearchToolCall, RunStepDeltaFileSearchToolCall, RunStepDeltaFunctionToolCall ,
4803
+ RunStepDeltaMcpToolCall, RunStepDeltaOpenAPIToolCall
4708
4804
4709
4805
:ivar index: The index of the tool call detail in the run step's tool_calls array. Required.
4710
4806
:vartype index: int
@@ -5092,6 +5188,48 @@ def __init__(self, *args: Any, **kwargs: Any) -> None:
5092
5188
super ().__init__ (* args , type = "code_interpreter" , ** kwargs )
5093
5189
5094
5190
5191
+ class RunStepDeltaConnectedAgentToolCall (RunStepDeltaToolCall , discriminator = "connected_agent" ):
5192
+ """Represents the invocation of connected agent as a part of a streaming run step.
5193
+
5194
+ :ivar index: The index of the tool call detail in the run step's tool_calls array. Required.
5195
+ :vartype index: int
5196
+ :ivar id: The ID of the tool call, used when submitting outputs to the run. Required.
5197
+ :vartype id: str
5198
+ :ivar type: The object type, which is always "connected_agent". Required. Default value is
5199
+ "connected_agent".
5200
+ :vartype type: str
5201
+ :ivar connected_agent: The collection of tool calls for the tool call detail item. Required.
5202
+ :vartype connected_agent: ~azure.ai.agents.models.RunStepConnectedAgent
5203
+ """
5204
+
5205
+ type : Literal ["connected_agent" ] = rest_discriminator (name = "type" , visibility = ["read" , "create" , "update" , "delete" , "query" ]) # type: ignore
5206
+ """The object type, which is always \" connected_agent\" . Required. Default value is
5207
+ \" connected_agent\" ."""
5208
+ connected_agent : "_models.RunStepConnectedAgent" = rest_field (
5209
+ visibility = ["read" , "create" , "update" , "delete" , "query" ]
5210
+ )
5211
+ """The collection of tool calls for the tool call detail item. Required."""
5212
+
5213
+ @overload
5214
+ def __init__ (
5215
+ self ,
5216
+ * ,
5217
+ index : int ,
5218
+ id : str , # pylint: disable=redefined-builtin
5219
+ connected_agent : "_models.RunStepConnectedAgent" ,
5220
+ ) -> None : ...
5221
+
5222
+ @overload
5223
+ def __init__ (self , mapping : Mapping [str , Any ]) -> None :
5224
+ """
5225
+ :param mapping: raw JSON to initialize the model.
5226
+ :type mapping: Mapping[str, Any]
5227
+ """
5228
+
5229
+ def __init__ (self , * args : Any , ** kwargs : Any ) -> None :
5230
+ super ().__init__ (* args , type = "connected_agent" , ** kwargs )
5231
+
5232
+
5095
5233
class RunStepDeltaDeepResearchToolCall (RunStepDeltaToolCall , discriminator = "deep_research" ):
5096
5234
"""Represents the Deep research in a streaming run step.
5097
5235
0 commit comments