Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
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
95 changes: 87 additions & 8 deletions cli/azd/cmd/testdata/TestFigSpec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ const completionSpec: Fig.Spec = {
subcommands: [
{
name: ['agent'],
description: 'Ship prompt, hosted, and voice agents with Microsoft Foundry from your terminal. (Beta)',
description: 'Ship prompt, hosted, and voice agents with Microsoft Foundry from your terminal.',
subcommands: [
{
name: ['add'],
Expand Down Expand Up @@ -276,11 +276,11 @@ const completionSpec: Fig.Spec = {
},
{
name: ['code'],
description: 'Manage agent source code. (Preview)',
description: 'Manage agent source code.',
subcommands: [
{
name: ['download'],
description: 'Download agent source code from Foundry. (Preview)',
description: 'Download agent source code from Foundry.',
options: [
{
name: ['--dest', '-d'],
Expand Down Expand Up @@ -730,7 +730,7 @@ const completionSpec: Fig.Spec = {
},
{
name: ['init'],
description: 'Initialize a new prompt, hosted, or voice agent project. (Preview)',
description: 'Initialize a new prompt, hosted, or voice agent project.',
options: [
{
name: ['--acr-connection'],
Expand All @@ -741,6 +741,15 @@ const completionSpec: Fig.Spec = {
},
],
},
{
name: ['--acr-resource-id'],
description: 'Existing ACR ARM resource ID for source builds in a new Foundry project (same subscription only)',
args: [
{
name: 'acr-resource-id',
},
],
},
{
name: ['--agent-name'],
description: 'Foundry agent name to write to azure.yaml. Reusing a name creates a new version of the existing agent.',
Expand Down Expand Up @@ -1143,7 +1152,7 @@ const completionSpec: Fig.Spec = {
},
{
name: ['--call-id'],
description: 'Call ID header value (sent as x-agent-foundry-call-id for local invocations only; ignored for remote requests)',
description: 'Call ID header value (sent as x-agent-foundry-call-id for local responses/invocations only; ignored for remote requests)',
args: [
{
name: 'call-id',
Expand Down Expand Up @@ -1250,7 +1259,7 @@ const completionSpec: Fig.Spec = {
},
{
name: ['--user-identity'],
description: 'User identity header value (sent as x-agent-user-id for local invocations and x-ms-user-identity for remote requests)',
description: 'User identity header value (sent as x-agent-user-id for local invocations and x-ms-user-identity for remote requests); not supported with local a2a',
args: [
{
name: 'user-identity',
Expand Down Expand Up @@ -1324,7 +1333,7 @@ const completionSpec: Fig.Spec = {
},
{
name: ['optimize'],
description: 'Evaluate and optimize AI agents.',
description: 'Optimize AI agents, prompts, and skills.',
subcommands: [
{
name: ['apply'],
Expand Down Expand Up @@ -1444,6 +1453,67 @@ const completionSpec: Fig.Spec = {
},
],
},
{
name: ['download'],
description: 'Download a published optimization candidate file.',
options: [
{
name: ['--candidate'],
description: 'Candidate ID (required)',
args: [
{
name: 'candidate',
},
],
},
{
name: ['--endpoint'],
description: 'Optimization service endpoint (for local dev)',
args: [
{
name: 'endpoint',
},
],
},
{
name: ['--file', '-f'],
description: 'Declared candidate file path (required)',
args: [
{
name: 'file',
},
],
},
{
name: ['--output', '-o'],
description: 'The output format',
args: [
{
name: 'output',
suggestions: ['json', 'table'],
},
],
},
{
name: ['--project-endpoint', '-p'],
description: 'Foundry project endpoint URL',
args: [
{
name: 'project-endpoint',
},
],
},
{
name: ['--target-path', '-t'],
description: 'Local destination path (defaults to remote filename)',
args: [
{
name: 'target-path',
},
],
},
],
},
{
name: ['list'],
description: 'List recent optimization runs.',
Expand Down Expand Up @@ -1500,6 +1570,15 @@ const completionSpec: Fig.Spec = {
name: ['status'],
description: 'Check the status of an optimization job.',
options: [
{
name: ['--candidate'],
description: 'Inspect this candidate\'s full details instead of the job',
args: [
{
name: 'candidate',
},
],
},
{
name: ['--endpoint'],
description: 'Optimization service endpoint (for local dev)',
Expand Down Expand Up @@ -1601,7 +1680,7 @@ const completionSpec: Fig.Spec = {
},
{
name: ['--eval-model', '-m'],
description: 'Model for evaluation (required)',
description: 'Model for evaluation-driven agent optimization',
args: [
{
name: 'eval-model',
Expand Down
2 changes: 1 addition & 1 deletion cli/azd/cmd/testdata/TestUsage-azd-ai-agent.snap
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

Ship prompt, hosted, and voice agents with Microsoft Foundry from your terminal. (Beta)
Ship prompt, hosted, and voice agents with Microsoft Foundry from your terminal.

Usage
azd ai agent [flags]
Expand Down
2 changes: 1 addition & 1 deletion cli/azd/cmd/testdata/TestUsage-azd-ai.snap
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Usage
azd ai [command]

Available Commands
agent : Ship prompt, hosted, and voice agents with Microsoft Foundry from your terminal. (Beta)
agent : Ship prompt, hosted, and voice agents with Microsoft Foundry from your terminal.
connection : Manage Microsoft Foundry Connections from your terminal. (Beta)
cu : Extension for Azure Content Understanding. (Preview)
dataset : Register and version Foundry datasets from your terminal. (Beta)
Expand Down
103 changes: 101 additions & 2 deletions cli/azd/extensions/registry.json
Original file line number Diff line number Diff line change
Expand Up @@ -2123,8 +2123,8 @@
{
"id": "azure.ai.agents",
"namespace": "ai.agent",
"displayName": "Foundry agents (Beta)",
"description": "Ship prompt, hosted, and voice agents with Microsoft Foundry from your terminal. (Beta)",
"displayName": "Foundry agents",
"description": "Ship prompt, hosted, and voice agents with Microsoft Foundry from your terminal.",
"versions": [
{
"version": "0.0.6",
Expand Down Expand Up @@ -7439,6 +7439,105 @@
"version": "~1.0.0-beta.6"
}
]
},
{
"version": "1.0.0",
"requiredAzdVersion": ">=1.37.0",
"capabilities": [
"custom-commands",
"lifecycle-events",
"mcp-server",
"service-target-provider",
"metadata"
],
"providers": [
{
"name": "azure.ai.agent",
"type": "service-target",
"description": "Deploys agents to the Foundry Agent Service"
}
],
"usage": "azd ai agent <command> [options]",
"examples": [
{
"name": "init",
"description": "Initialize a new prompt, hosted, or voice agent project.",
"usage": "azd ai agent init"
},
{
"name": "init-prompt-voice",
"description": "Initialize a new prompt voice agent.",
"usage": "azd ai agent init --kind prompt-voice --agent-name my-voice-agent"
}
],
"artifacts": {
"darwin/amd64": {
"checksum": {
"algorithm": "sha256",
"value": "239969386ef22e043897c1528b0313960c3b8486b48ab63a6d48eb68f0d0e32b"
},
"entryPoint": "azure-ai-agents-darwin-amd64",
"url": "https://github.com/Azure/azure-dev/releases/download/azd-ext-azure-ai-agents_1.0.0/azure-ai-agents-darwin-amd64.zip"
},
"darwin/arm64": {
"checksum": {
"algorithm": "sha256",
"value": "aac527efc5aac242546ebbcdcb6adfabd7070c573f624a9512a4db2a19a9226b"
},
"entryPoint": "azure-ai-agents-darwin-arm64",
"url": "https://github.com/Azure/azure-dev/releases/download/azd-ext-azure-ai-agents_1.0.0/azure-ai-agents-darwin-arm64.zip"
},
"linux/amd64": {
"checksum": {
"algorithm": "sha256",
"value": "84e8d5de1fee2042497e467c0ac322ec82903567be3a86e57de834171eb65579"
},
"entryPoint": "azure-ai-agents-linux-amd64",
"url": "https://github.com/Azure/azure-dev/releases/download/azd-ext-azure-ai-agents_1.0.0/azure-ai-agents-linux-amd64.tar.gz"
},
"linux/arm64": {
"checksum": {
"algorithm": "sha256",
"value": "29c8bb9827358a387720b97202060c446ef5d5e434c54ef5f00f5c7c2019b4a2"
},
"entryPoint": "azure-ai-agents-linux-arm64",
"url": "https://github.com/Azure/azure-dev/releases/download/azd-ext-azure-ai-agents_1.0.0/azure-ai-agents-linux-arm64.tar.gz"
},
"windows/amd64": {
"checksum": {
"algorithm": "sha256",
"value": "f05f9eda6ce4c21f9a6fe33d2a40d13cee34a0f319908c646c3268c315a0db9a"
},
"entryPoint": "azure-ai-agents-windows-amd64.exe",
"url": "https://github.com/Azure/azure-dev/releases/download/azd-ext-azure-ai-agents_1.0.0/azure-ai-agents-windows-amd64.zip"
},
"windows/arm64": {
"checksum": {
"algorithm": "sha256",
"value": "dcc759f3a12af855eb04870a28df8a0940de615486628e0408f7cb77577ac42b"
},
"entryPoint": "azure-ai-agents-windows-arm64.exe",
"url": "https://github.com/Azure/azure-dev/releases/download/azd-ext-azure-ai-agents_1.0.0/azure-ai-agents-windows-arm64.zip"
}
},
"dependencies": [
{
"id": "azure.ai.inspector",
"version": "~1.0.0"
Comment thread
huimiu marked this conversation as resolved.
Resolved
},
{
"id": "azure.ai.projects",
"version": "~1.0.0"
},
{
"id": "azure.ai.connections",
"version": "~1.0.0"
},
{
"id": "azure.ai.toolboxes",
"version": "~1.0.0"
}
]
}
]
},
Expand Down
Loading