Skip to content

Commit 41b94af

Browse files
nick863vasanthrajams
authored andcommitted
Add delta classes for tools. (Azure#36402)
* Add delta classes for tools. * Fix
1 parent 8e88316 commit 41b94af

File tree

2 files changed

+164
-0
lines changed

2 files changed

+164
-0
lines changed

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

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,17 @@ model RunStepDeltaMCPObject extends RunStepDeltaDetail {
262262
toolCalls?: RunStepDeltaMcpToolCall[];
263263
}
264264

265+
/** Represents an invocation of openapi as part of a streaming run step. */
266+
@added(Versions.v2025_05_15_preview)
267+
model RunStepDeltaOpenAPIObject extends RunStepDeltaDetail {
268+
/** The object type, which is always "openapi". */
269+
type: "openapi";
270+
271+
/** The collection of tool calls for the tool call detail item. */
272+
@encodedName("application/json", "tool_calls")
273+
toolCalls?: RunStepDeltaOpenAPIToolCall[];
274+
}
275+
265276
/** The abstract base representation of a single tool call within a streaming run step's delta tool call details. */
266277
@discriminator("type")
267278
@added(Versions.v2025_05_01)
@@ -322,6 +333,50 @@ model RunStepDeltaMcpToolCall extends RunStepDeltaToolCall {
322333
arguments: string;
323334
}
324335

336+
/** Represents the openapi tool call in a streaming run step. */
337+
@added(Versions.v2025_05_15_preview)
338+
model RunStepDeltaOpenAPIToolCall extends RunStepDeltaToolCall {
339+
/** The object type, which is always "openapi". */
340+
type: "openapi";
341+
342+
@doc("Reserved for future use.")
343+
@encodedName("application/json", "openapi")
344+
openAPI: Record<string>;
345+
}
346+
347+
/** Represents the bing grounding tool call in a streaming run step. */
348+
@added(Versions.v2025_05_15_preview)
349+
model RunStepDeltaBingGroundingToolCall extends RunStepDeltaToolCall {
350+
/** The object type, which is always "bing_grounding". */
351+
type: "bing_grounding";
352+
353+
@doc("Reserved for future use.")
354+
@encodedName("application/json", "bing_grounding")
355+
bingGrounding: Record<string>;
356+
}
357+
358+
/** Represents the Deep research in a streaming run step. */
359+
@added(Versions.v2025_05_15_preview)
360+
model RunStepDeltaDeepResearchToolCall extends RunStepDeltaToolCall {
361+
/** The object type, which is always "deep_research". */
362+
type: "deep_research";
363+
364+
/** The details of DeepResearch tool call. */
365+
@encodedName("application/json", "deep_research")
366+
deepResearch: RunStepDeepResearchToolCallDetails;
367+
}
368+
369+
/** Represents the Azure AI Search in a streaming run step. */
370+
@added(Versions.v2025_05_15_preview)
371+
model RunStepDeltaAzureAISearchToolCall extends RunStepDeltaToolCall {
372+
/** The object type, which is always "azure_ai_search". */
373+
type: "azure_ai_search";
374+
375+
@doc("Reserved for future use.")
376+
@encodedName("application/json", "azure_ai_search")
377+
azureAISearch: Record<string>;
378+
}
379+
325380
/** Represents the function data in a streaming run step delta's function tool call. */
326381
@added(Versions.v2025_05_01)
327382
model RunStepDeltaFunction {

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

Lines changed: 109 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6397,6 +6397,52 @@
63976397
}
63986398
}
63996399
},
6400+
"RunStepDeltaAzureAISearchToolCall": {
6401+
"type": "object",
6402+
"description": "Represents the Azure AI Search in a streaming run step.",
6403+
"properties": {
6404+
"azure_ai_search": {
6405+
"type": "object",
6406+
"description": "Reserved for future use.",
6407+
"additionalProperties": {
6408+
"type": "string"
6409+
},
6410+
"x-ms-client-name": "azureAISearch"
6411+
}
6412+
},
6413+
"required": [
6414+
"azure_ai_search"
6415+
],
6416+
"allOf": [
6417+
{
6418+
"$ref": "#/definitions/RunStepDeltaToolCall"
6419+
}
6420+
],
6421+
"x-ms-discriminator-value": "azure_ai_search"
6422+
},
6423+
"RunStepDeltaBingGroundingToolCall": {
6424+
"type": "object",
6425+
"description": "Represents the bing grounding tool call in a streaming run step.",
6426+
"properties": {
6427+
"bing_grounding": {
6428+
"type": "object",
6429+
"description": "Reserved for future use.",
6430+
"additionalProperties": {
6431+
"type": "string"
6432+
},
6433+
"x-ms-client-name": "bingGrounding"
6434+
}
6435+
},
6436+
"required": [
6437+
"bing_grounding"
6438+
],
6439+
"allOf": [
6440+
{
6441+
"$ref": "#/definitions/RunStepDeltaToolCall"
6442+
}
6443+
],
6444+
"x-ms-discriminator-value": "bing_grounding"
6445+
},
64006446
"RunStepDeltaChunk": {
64016447
"type": "object",
64026448
"description": "Represents a run step delta i.e. any changed fields on a run step during streaming.",
@@ -6523,6 +6569,26 @@
65236569
],
65246570
"x-ms-discriminator-value": "code_interpreter"
65256571
},
6572+
"RunStepDeltaDeepResearchToolCall": {
6573+
"type": "object",
6574+
"description": "Represents the Deep research in a streaming run step.",
6575+
"properties": {
6576+
"deep_research": {
6577+
"$ref": "#/definitions/RunStepDeepResearchToolCallDetails",
6578+
"description": "The details of DeepResearch tool call.",
6579+
"x-ms-client-name": "deepResearch"
6580+
}
6581+
},
6582+
"required": [
6583+
"deep_research"
6584+
],
6585+
"allOf": [
6586+
{
6587+
"$ref": "#/definitions/RunStepDeltaToolCall"
6588+
}
6589+
],
6590+
"x-ms-discriminator-value": "deep_research"
6591+
},
65266592
"RunStepDeltaDetail": {
65276593
"type": "object",
65286594
"description": "Represents a single run step detail item in a streaming run step's delta payload.",
@@ -6662,6 +6728,49 @@
66626728
}
66636729
}
66646730
},
6731+
"RunStepDeltaOpenAPIObject": {
6732+
"type": "object",
6733+
"description": "Represents an invocation of openapi as part of a streaming run step.",
6734+
"properties": {
6735+
"tool_calls": {
6736+
"type": "array",
6737+
"description": "The collection of tool calls for the tool call detail item.",
6738+
"items": {
6739+
"$ref": "#/definitions/RunStepDeltaOpenAPIToolCall"
6740+
},
6741+
"x-ms-client-name": "toolCalls"
6742+
}
6743+
},
6744+
"allOf": [
6745+
{
6746+
"$ref": "#/definitions/RunStepDeltaDetail"
6747+
}
6748+
],
6749+
"x-ms-discriminator-value": "openapi"
6750+
},
6751+
"RunStepDeltaOpenAPIToolCall": {
6752+
"type": "object",
6753+
"description": "Represents the openapi tool call in a streaming run step.",
6754+
"properties": {
6755+
"openapi": {
6756+
"type": "object",
6757+
"description": "Reserved for future use.",
6758+
"additionalProperties": {
6759+
"type": "string"
6760+
},
6761+
"x-ms-client-name": "openAPI"
6762+
}
6763+
},
6764+
"required": [
6765+
"openapi"
6766+
],
6767+
"allOf": [
6768+
{
6769+
"$ref": "#/definitions/RunStepDeltaToolCall"
6770+
}
6771+
],
6772+
"x-ms-discriminator-value": "openapi"
6773+
},
66656774
"RunStepDeltaToolCall": {
66666775
"type": "object",
66676776
"description": "The abstract base representation of a single tool call within a streaming run step's delta tool call details.",

0 commit comments

Comments
 (0)