Skip to content

Commit 511fb93

Browse files
authored
Add connected agent tool details and delta. (#36439)
1 parent 3c15c2f commit 511fb93

File tree

3 files changed

+122
-0
lines changed

3 files changed

+122
-0
lines changed

specification/ai/Azure.AI.Agents/run_steps/models.tsp

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -273,6 +273,17 @@ model RunStepDeltaOpenAPIObject extends RunStepDeltaDetail {
273273
toolCalls?: RunStepDeltaOpenAPIToolCall[];
274274
}
275275

276+
/** Represents the invocation of connected agent as a part of a streaming run step. */
277+
@added(Versions.v2025_05_15_preview)
278+
model RunStepDeltaConnectedAgentToolCall extends RunStepDeltaToolCall {
279+
/** The object type, which is always "connected_agent". */
280+
type: "connected_agent";
281+
282+
/** The collection of tool calls for the tool call detail item. */
283+
@encodedName("application/json", "connected_agent")
284+
connectedAgent: RunStepConnectedAgent;
285+
}
286+
276287
/** The abstract base representation of a single tool call within a streaming run step's delta tool call details. */
277288
@discriminator("type")
278289
@added(Versions.v2025_05_01)

specification/ai/Azure.AI.Agents/tools/models.tsp

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -690,6 +690,17 @@ model RunStepDeepResearchToolCall extends RunStepToolCall {
690690
deepResearch: RunStepDeepResearchToolCallDetails;
691691
}
692692

693+
/** A record of a call to the connected agent. */
694+
@added(Versions.v2025_05_15_preview)
695+
model RunStepConnectedAgentToolCall extends RunStepToolCall {
696+
@doc("The object type, which is always 'connected_agent'.")
697+
type: "connected_agent";
698+
699+
@doc("The connected agent step information.")
700+
@encodedName("application/json", "connected_agent")
701+
connectedAgent: RunStepConnectedAgent;
702+
}
703+
693704
// Call details: Code Interpreter
694705

695706
@doc("The detailed information about a code interpreter invocation by the model.")
@@ -785,6 +796,33 @@ model RunStepDeepResearchToolCallDetails {
785796
output?: string;
786797
}
787798

799+
// Call details: ConnectedAgent
800+
801+
@doc("The detailed information about connected agent tool call.")
802+
@added(Versions.v2025_05_15_preview)
803+
model RunStepConnectedAgent {
804+
@doc("The name of connected agent.")
805+
name?: string;
806+
807+
@doc("The JSON serialized query to the connected agent.")
808+
arguments?: string;
809+
810+
@doc("The tool output.")
811+
output?: string;
812+
813+
@doc("The run ID used by the connected agent.")
814+
@encodedName("application/json", "run_id")
815+
runId?: string;
816+
817+
@doc("The thread ID used by the connected agent.")
818+
@encodedName("application/json", "thread_id")
819+
threadId?: string;
820+
821+
@doc("The ID of a connected agent.")
822+
@encodedName("application/json", "assistant_id")
823+
agentId?: string;
824+
}
825+
788826
//
789827
// Tool outputs -- structured data that provides requested information from tools back to the model
790828
//

specification/ai/data-plane/Azure.AI.Agents/preview/2025-05-15-preview/azure-ai-agents.json

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6467,6 +6467,59 @@
64676467
"total_tokens"
64686468
]
64696469
},
6470+
"RunStepConnectedAgent": {
6471+
"type": "object",
6472+
"description": "The detailed information about connected agent tool call.",
6473+
"properties": {
6474+
"name": {
6475+
"type": "string",
6476+
"description": "The name of connected agent."
6477+
},
6478+
"arguments": {
6479+
"type": "string",
6480+
"description": "The JSON serialized query to the connected agent."
6481+
},
6482+
"output": {
6483+
"type": "string",
6484+
"description": "The tool output."
6485+
},
6486+
"run_id": {
6487+
"type": "string",
6488+
"description": "The run ID used by the connected agent.",
6489+
"x-ms-client-name": "runId"
6490+
},
6491+
"thread_id": {
6492+
"type": "string",
6493+
"description": "The thread ID used by the connected agent.",
6494+
"x-ms-client-name": "threadId"
6495+
},
6496+
"assistant_id": {
6497+
"type": "string",
6498+
"description": "The ID of a connected agent.",
6499+
"x-ms-client-name": "agentId"
6500+
}
6501+
}
6502+
},
6503+
"RunStepConnectedAgentToolCall": {
6504+
"type": "object",
6505+
"description": "A record of a call to the connected agent.",
6506+
"properties": {
6507+
"connected_agent": {
6508+
"$ref": "#/definitions/RunStepConnectedAgent",
6509+
"description": "The connected agent step information.",
6510+
"x-ms-client-name": "connectedAgent"
6511+
}
6512+
},
6513+
"required": [
6514+
"connected_agent"
6515+
],
6516+
"allOf": [
6517+
{
6518+
"$ref": "#/definitions/RunStepToolCall"
6519+
}
6520+
],
6521+
"x-ms-discriminator-value": "connected_agent"
6522+
},
64706523
"RunStepDeepResearchToolCall": {
64716524
"type": "object",
64726525
"description": "A record of a call to a Deep Research tool, issued by the model in evaluation of a defined tool, that represents\nexecuted deep research operations.",
@@ -6687,6 +6740,26 @@
66876740
],
66886741
"x-ms-discriminator-value": "code_interpreter"
66896742
},
6743+
"RunStepDeltaConnectedAgentToolCall": {
6744+
"type": "object",
6745+
"description": "Represents the invocation of connected agent as a part of a streaming run step.",
6746+
"properties": {
6747+
"connected_agent": {
6748+
"$ref": "#/definitions/RunStepConnectedAgent",
6749+
"description": "The collection of tool calls for the tool call detail item.",
6750+
"x-ms-client-name": "connectedAgent"
6751+
}
6752+
},
6753+
"required": [
6754+
"connected_agent"
6755+
],
6756+
"allOf": [
6757+
{
6758+
"$ref": "#/definitions/RunStepDeltaToolCall"
6759+
}
6760+
],
6761+
"x-ms-discriminator-value": "connected_agent"
6762+
},
66906763
"RunStepDeltaDeepResearchToolCall": {
66916764
"type": "object",
66926765
"description": "Represents the Deep research in a streaming run step.",

0 commit comments

Comments
 (0)