Skip to content

Commit 2d1fb1e

Browse files
trangeviJeffreyCA
andauthored
[Agent Extension] Add support for getting model details during init (#6021)
* Update yaml objects to match maml changes. Update other files to adapt to changes. Signed-off-by: trangevi <[email protected]> * Some more fixes for typing Signed-off-by: trangevi <[email protected]> * Missed one Signed-off-by: trangevi <[email protected]> * remove old file Signed-off-by: trangevi <[email protected]> * Update cli/azd/extensions/azure.foundry.ai.agents/internal/cmd/init.go Co-authored-by: JeffreyCA <[email protected]> * PR Comments Signed-off-by: trangevi <[email protected]> * Add model details env var Signed-off-by: trangevi <[email protected]> * Fix registry get Signed-off-by: trangevi <[email protected]> * Merge branch 'main' into trangevi/model-deployment-details * Bad merge Signed-off-by: trangevi <[email protected]> * remove .orig file Signed-off-by: trangevi <[email protected]> * Remove old env var handling Signed-off-by: trangevi <[email protected]> --------- Signed-off-by: trangevi <[email protected]> Co-authored-by: JeffreyCA <[email protected]>
1 parent 5f06ace commit 2d1fb1e

File tree

7 files changed

+386
-176
lines changed

7 files changed

+386
-176
lines changed
Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
1-
# yaml-language-server: $schema=../extension.schema.json
2-
id: azure.ai.agents
3-
namespace: ai.agent
4-
displayName: AI Foundry Agents
5-
description: This extension provides custom commands for working with agents using Azure Developer CLI.
6-
usage: azd ai agent <command> [options]
7-
# NOTE: Make sure version.txt is in sync with this version.
8-
version: 0.0.1
9-
language: go
10-
capabilities:
11-
- custom-commands
12-
- lifecycle-events
13-
- mcp-server
14-
- service-target-provider
15-
providers:
16-
- name: azure.ai.agents
17-
type: service-target
18-
description: Deploys agents to AI Foundry container agent service.
19-
examples:
20-
- name: init
21-
description: Initialize a new AI agent project.
22-
usage: azd ai agent init
23-
- name: mcp
24-
description: Start MCP server with AI Foundry agent tools.
25-
usage: azd ai agent mcp start
1+
# yaml-language-server: $schema=../extension.schema.json
2+
id: azure.ai.agents
3+
namespace: ai.agent
4+
displayName: AI Foundry Agents
5+
description: This extension provides custom commands for working with agents using Azure Developer CLI.
6+
usage: azd ai agent <command> [options]
7+
# NOTE: Make sure version.txt is in sync with this version.
8+
version: 0.0.1
9+
language: go
10+
capabilities:
11+
- custom-commands
12+
- lifecycle-events
13+
- mcp-server
14+
- service-target-provider
15+
providers:
16+
- name: azure.ai.agents
17+
type: service-target
18+
description: Deploys agents to AI Foundry container agent service.
19+
examples:
20+
- name: init
21+
description: Initialize a new AI agent project.
22+
usage: azd ai agent init
23+
- name: mcp
24+
description: Start MCP server with AI Foundry agent tools.
25+
usage: azd ai agent mcp start

cli/azd/extensions/azure.ai.agents/go.mod

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ require (
1111
github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.2.0
1212
github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armsubscriptions v1.3.0
1313
github.com/azure/azure-dev v0.0.0-20251024053325-326f63f72d65
14+
github.com/braydonk/yaml v0.9.0
1415
github.com/fatih/color v1.18.0
1516
github.com/google/uuid v1.6.0
1617
github.com/mark3labs/mcp-go v0.41.1
@@ -20,6 +21,7 @@ require (
2021
)
2122

2223
require (
24+
dario.cat/mergo v1.0.2 // indirect
2325
github.com/AlecAivazis/survey/v2 v2.3.7 // indirect
2426
github.com/Azure/azure-sdk-for-go/sdk/internal v1.11.2 // indirect
2527
github.com/AzureAD/microsoft-authentication-library-for-go v1.5.0 // indirect
@@ -29,7 +31,6 @@ require (
2931
github.com/aymerick/douceur v0.2.0 // indirect
3032
github.com/bahlo/generic-list-go v0.2.0 // indirect
3133
github.com/blang/semver/v4 v4.0.0 // indirect
32-
github.com/braydonk/yaml v0.9.0 // indirect
3334
github.com/buger/goterm v1.0.4 // indirect
3435
github.com/buger/jsonparser v1.1.1 // indirect
3536
github.com/charmbracelet/colorprofile v0.3.2 // indirect
@@ -43,6 +44,7 @@ require (
4344
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect
4445
github.com/dlclark/regexp2 v1.11.5 // indirect
4546
github.com/drone/envsubst v1.0.3 // indirect
47+
github.com/eiannone/keyboard v0.0.0-20220611211555-0d226195f203 // indirect
4648
github.com/go-logr/logr v1.4.3 // indirect
4749
github.com/go-logr/stdr v1.2.2 // indirect
4850
github.com/golang-jwt/jwt/v5 v5.3.0 // indirect

cli/azd/extensions/azure.ai.agents/go.sum

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
code.cloudfoundry.org/clock v0.0.0-20180518195852-02e53af36e6c/go.mod h1:QD9Lzhd/ux6eNQVUDVRJX/RKTigpewimNYBi7ivZKY8=
2+
dario.cat/mergo v1.0.2 h1:85+piFYR1tMbRrLcDwR18y4UKJ3aH1Tbzi24VRW1TK8=
3+
dario.cat/mergo v1.0.2/go.mod h1:E/hbnu0NxMFBjpMIE34DRGLWqDy0g5FuKDhCb31ngxA=
24
github.com/AlecAivazis/survey/v2 v2.3.7 h1:6I/u8FvytdGsgonrYsVn2t8t4QiRnh6QSTqkkhIiSjQ=
35
github.com/AlecAivazis/survey/v2 v2.3.7/go.mod h1:xUTIdE4KCOIjsBAE1JYsUPoCqYdZ1reCfTwbto0Fduo=
46
github.com/Azure/azure-sdk-for-go/sdk/azcore v1.19.1 h1:5YTBM8QDVIBN3sxBil89WfdAAqDZbyJTgh688DSxX5w=
@@ -90,6 +92,8 @@ github.com/dlclark/regexp2 v1.11.5 h1:Q/sSnsKerHeCkc/jSTNq1oCm7KiVgUMZRDUoRu0JQZ
9092
github.com/dlclark/regexp2 v1.11.5/go.mod h1:DHkYz0B9wPfa6wondMfaivmHpzrQ3v9q8cnmRbL6yW8=
9193
github.com/drone/envsubst v1.0.3 h1:PCIBwNDYjs50AsLZPYdfhSATKaRg/FJmDc2D6+C2x8g=
9294
github.com/drone/envsubst v1.0.3/go.mod h1:N2jZmlMufstn1KEqvbHjw40h1KyTmnVzHcSc9bFiJ2g=
95+
github.com/eiannone/keyboard v0.0.0-20220611211555-0d226195f203 h1:XBBHcIb256gUJtLmY22n99HaZTz+r2Z51xUPi01m3wg=
96+
github.com/eiannone/keyboard v0.0.0-20220611211555-0d226195f203/go.mod h1:E1jcSv8FaEny+OP/5k9UxZVw9YFWGj7eI4KR/iOBqCg=
9397
github.com/fatih/color v1.18.0 h1:S8gINlzdQ840/4pfAwic/ZE0djQEH3wM94VfqLTZcOM=
9498
github.com/fatih/color v1.18.0/go.mod h1:4FelSpRwEGDpQ12mAdzqdOukCy4u8WUtOY6lkT/6HfU=
9599
github.com/frankban/quicktest v1.14.6 h1:7Xjx+VpznH+oBnejlPUj8oUpdxnVs4f8XU8WnHkI4W8=

0 commit comments

Comments
 (0)