Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
a5319fe
[AI Agents] v1.1.0b4 features
glharper Jul 9, 2025
cc30815
add madeOptional decorator to toolOutputs member
glharper Jul 9, 2025
3fb4ae3
Merge branch 'main' into feature/azure-ai-agents-v1.1.0b4
glharper Jul 9, 2025
6bf9fac
Merge branch 'main' into feature/azure-ai-agents-v1.1.0b4
glharper Jul 9, 2025
15c4a4a
Merge branch 'main' into feature/azure-ai-agents-v1.1.0b4
glharper Jul 9, 2025
27ff647
Merge branch 'main' into feature/azure-ai-agents-v1.1.0b4
glharper Jul 10, 2025
13245d5
Merge branch 'main' into feature/azure-ai-agents-v1.1.0b4
glharper Jul 10, 2025
1863287
[AI Agents] MCP tool typespec (#35504)
glharper Jul 10, 2025
87ca824
add line break to models
glharper Jul 10, 2025
d7df847
Update tspconfig.yaml
glharper Jul 10, 2025
7b710e9
Update tspconfig.yaml
glharper Jul 10, 2025
325a30f
review feedback
glharper Jul 10, 2025
2f80437
add example for upload file
glharper Jul 11, 2025
f92b42a
add create thread json
glharper Jul 11, 2025
0e613ee
update create thread
glharper Jul 11, 2025
0b9cb74
add json for run operations
glharper Jul 14, 2025
79106dc
npx tsv output
glharper Jul 14, 2025
20e54b9
Merge branch 'main' into feature/azure-ai-agents-v1.1.0b4
glharper Jul 14, 2025
6b9c2f8
update jsons
glharper Jul 14, 2025
f536304
Merge branch 'feature/azure-ai-agents-v1.1.0b4' of https://github.com…
glharper Jul 14, 2025
ece4403
correct runs swagger json
glharper Jul 14, 2025
e2ad54b
swagger updates
glharper Jul 14, 2025
adfdbe0
swagger updates 2
glharper Jul 14, 2025
d4e1617
swagger updates
glharper Jul 14, 2025
55b95c7
swagger updates 3
glharper Jul 14, 2025
98d7683
swagger updates 4
glharper Jul 14, 2025
8a0e2f8
swagger updates 5
glharper Jul 14, 2025
7b26a44
swagger changes 6
glharper Jul 14, 2025
4f3eacd
swagger updates 7
glharper Jul 14, 2025
c05db46
swagger updates 8
glharper Jul 14, 2025
1f79620
swagger prettier
glharper Jul 14, 2025
402b1c9
swagger prettier 2
glharper Jul 14, 2025
dc0e3f9
swagger prettier 3
glharper Jul 14, 2025
a033a39
Merge branch 'main' into feature/azure-ai-agents-v1.1.0b4
glharper Jul 14, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions specification/ai/Azure.AI.Agents/client.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,8 @@ using Azure.AI.Agents;
);

// nested Runs interface
@@access(Azure.AI.Agents.Runs.createRun, Access.internal, "csharp");
@@clientName(Azure.AI.Agents.Runs.createRun, "InternalCreateRun", "csharp");
@@clientName(Azure.AI.Agents.Runs.createRun, "create", "python");
@@clientName(Azure.AI.Agents.Runs.listRuns, "list", "python");
@@clientName(Azure.AI.Agents.Runs.getRun, "get", "python");
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,269 @@
{
"title": "CreateThreadAndRun_MaximumSet",
"operationId": "CreateThreadAndRun",
"parameters": {
"api-version": "2025-05-15-preview",
"body": {
"assistant_id": "asst_abc123",
"thread": {
"messages": [
{
"role": "user",
"content": {
"text": "I need help with data analysis",
"blocks": [
{
"type": "text",
"text": "Please analyze this dataset and provide insights"
},
{
"type": "image_file",
"image_file": {
"file_id": "file_abc123",
"detail": "high"
}
}
]
},
"attachments": [
{
"file_id": "file_abc123",
"data_source": {
"uri": "https://example.com/data.xlsx",
"type": "uri_asset"
},
"tools": [
{
"type": "code_interpreter"
},
{
"type": "file_search"
}
]
}
]
}
],
"tool_resources": {
"code_interpreter": {
"file_ids": [
"file_abc123",
"file_def456"
],
"data_sources": [
{
"uri": "https://example.com/data1.csv",
"type": "uri_asset"
},
{
"uri": "https://example.com/data2.csv",
"type": "uri_asset"
}
]
},
"file_search": {
"vector_store_ids": [
"vs_abc123"
],
"vector_stores": [
{
"name": "research_docs",
"configuration": {
"data_sources": [
{
"uri": "https://example.com/research.pdf",
"type": "uri_asset"
}
]
}
}
]
},
"azure_ai_search": {
"indexes": [
{
"index_connection_id": "conn_abc123",
"index_name": "product_index",
"query_type": "simple",
"top_k": 10,
"filter": "category eq 'electronics'",
"index_asset_id": "idx_abc123"
}
]
}
},
"metadata": {
"project": "data_analysis",
"priority": "high"
}
},
"model": "gpt-4",
"instructions": "You are a data analysis expert. Provide detailed insights and recommendations.",
"tools": [
{
"type": "code_interpreter"
},
{
"type": "file_search"
},
{
"type": "function",
"function": {
"name": "analyze_trend",
"description": "Analyze data trends",
"parameters": {
"type": "object",
"properties": {
"data": {
"type": "array"
},
"timeframe": {
"type": "string"
}
}
}
}
}
],
"tool_resources": {
"code_interpreter": {
"file_ids": [
"file_abc123",
"file_def456"
],
"data_sources": [
{
"uri": "https://example.com/global_data.csv",
"type": "uri_asset"
}
]
},
"file_search": {
"vector_store_ids": [
"vs_abc123"
]
}
},
"stream": false,
"truncation_strategy": {
"type": "auto"
},
"tool_choice": "auto",
"response_format": {
"type": "text"
},
"parallel_tool_calls": true,
"metadata": {
"experiment_id": "exp_123",
"session": "analysis_session_1"
}
}
},
"responses": {
"200": {
"body": {
"id": "run_abc123",
"object": "thread.run",
"thread_id": "thread_abc123",
"assistant_id": "asst_abc123",
"status": "in_progress",
"required_action": {
"type": "submit_tool_outputs",
"submit_tool_outputs": {
"tool_calls": [
{
"id": "call_abc123",
"type": "function",
"function": {
"name": "calculate_metrics",
"arguments": "{\"values\": [1, 2, 3, 4, 5], \"metric_type\": \"mean\"}"
}
}
]
}
},
"last_error": {
"code": "server_error",
"message": "jadlgjrkhbhukfc"
},
"model": "gpt-4",
"instructions": "You are a data analysis expert. Provide detailed insights and recommendations.",
"tools": [
{
"type": "code_interpreter"
},
{
"type": "file_search"
},
{
"type": "function",
"function": {
"name": "analyze_trend",
"description": "Analyze data trends",
"parameters": {
"type": "object",
"properties": {
"data": {
"type": "array"
},
"timeframe": {
"type": "string"
}
}
}
}
}
],
"created_at": 1736869200,
"expires_at": 1736872800,
"started_at": 1736869201,
"completed_at": 12,
"cancelled_at": 18,
"failed_at": 15,
"incomplete_details": {
"reason": "content_filter"
},
"usage": {
"completion_tokens": 25,
"prompt_tokens": 2,
"total_tokens": 10
},
"temperature": 0.7,
"top_p": 0.9,
"max_prompt_tokens": 4096,
"max_completion_tokens": 2048,
"truncation_strategy": {
"type": "auto"
},
"tool_choice": "auto",
"response_format": {
"type": "text"
},
"tool_resources": {
"code_interpreter": {
"file_ids": [
"file_abc123",
"file_def456"
],
"data_sources": [
{
"uri": "https://example.com/global_data.csv",
"type": "uri_asset"
}
]
},
"file_search": {
"vector_store_ids": [
"vs_abc123"
]
}
},
"parallel_tool_calls": true,
"metadata": {
"experiment_id": "exp_123",
"session": "analysis_session_1"
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
{
"title": "CreateThreadAndRun_MinimumSet",
"operationId": "CreateThreadAndRun",
"parameters": {
"api-version": "2025-05-15-preview",
"body": {
"assistant_id": "asst_abc123"
}
},
"responses": {
"200": {
"body": {
"id": "run_abc123",
"object": "thread.run",
"thread_id": "thread_abc123",
"assistant_id": "asst_abc123",
"status": "queued",
"required_action": {
"type": "submit_tool_outputs",
"submit_tool_outputs": {
"tool_calls": [
{
"id": "call_abc123",
"type": "function",
"function": {
"name": "calculate_metrics",
"arguments": "{\"values\": [1, 2, 3, 4, 5], \"metric_type\": \"mean\"}"
}
}
]
}
},
"last_error": {
"code": "server_error",
"message": "jadlgjrkhbhukfc"
},
"model": "gpt-4",
"instructions": "You are a helpful assistant.",
"tools": [
null
],
"created_at": 1736869200,
"expires_at": 1736872800,
"started_at": 5,
"completed_at": 12,
"cancelled_at": 18,
"failed_at": 15,
"incomplete_details": {
"reason": "content_filter"
},
"usage": {
"completion_tokens": 25,
"prompt_tokens": 2,
"total_tokens": 10
},
"temperature": 0.7,
"top_p": 0.9,
"max_prompt_tokens": 4096,
"max_completion_tokens": 2048,
"truncation_strategy": {
"type": "auto"
},
"tool_choice": {
"type": "function",
"function": {
"name": "calculate_metrics"
}
},
"response_format": {
"type": "text"
},
"tool_resources": {},
"parallel_tool_calls": true,
"metadata": {}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"title": "Files_UploadFile_MaximumSet",
"operationId": "Files_UploadFile",
"parameters": {
"api-version": "2025-05-15-preview",
"purpose": "fine-tune",
"file": [
0,
1,
0,
1,
0
],
"filename": "q"
},
"responses": {
"200": {
"body": {
"object": "file",
"id": "zhbn",
"bytes": 7,
"filename": "q",
"created_at": 17,
"purpose": "fine-tune",
"status": "uploaded",
"status_details": "kgcllmehsrzwegmcrz"
}
}
}
}
Loading
Loading