Skip to content
Merged
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
99 changes: 89 additions & 10 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 Expand Up @@ -7332,7 +7411,7 @@ const completionSpec: Fig.Spec = {
},
{
name: ['routine'],
description: 'Manage Microsoft Foundry Routines from your terminal. (Beta)',
description: 'Manage Microsoft Foundry Routines from your terminal.',
subcommands: [
{
name: ['add'],
Expand Down Expand Up @@ -8586,7 +8665,7 @@ const completionSpec: Fig.Spec = {
},
{
name: ['toolbox'],
description: 'Manage Microsoft Foundry Toolboxes from your terminal. (Beta)',
description: 'Manage Microsoft Foundry Toolboxes from your terminal.',
subcommands: [
{
name: ['add'],
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-routine.snap
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

Manage Microsoft Foundry Routines from your terminal. (Beta)
Manage Microsoft Foundry Routines from your terminal.

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

Manage Microsoft Foundry Toolboxes from your terminal. (Beta)
Manage Microsoft Foundry Toolboxes from your terminal.

Usage
azd ai toolbox [flags]
Expand Down
6 changes: 3 additions & 3 deletions 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.
cu : Extension for Azure Content Understanding. (Preview)
dataset : Register and version Foundry datasets from your terminal. (Beta)
Expand All @@ -14,9 +14,9 @@ Available Commands
inspector : Browser-based inspector UI for locally running Foundry agents.
models : Extension for managing custom models in Azure AI Foundry. (Preview)
project : Manage Microsoft Foundry Project resources from your terminal.
routine : Manage Microsoft Foundry Routines from your terminal. (Beta)
routine : Manage Microsoft Foundry Routines from your terminal.
skill : Manage Microsoft Foundry skills (reusable agent behavioral guidelines) from your terminal.
toolbox : Manage Microsoft Foundry Toolboxes from your terminal. (Beta)
toolbox : Manage Microsoft Foundry Toolboxes from your terminal.

Global Flags
-C, --cwd string : Sets the current working directory.
Expand Down
Loading
Loading