Skip to content

Commit

Permalink
Update the description and sample queries for Azure agents (#83)
Browse files Browse the repository at this point in the history
  • Loading branch information
daxian-dbw authored Mar 7, 2024
1 parent 37ef25e commit e40e77f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion shell/ShellCopilot.Azure.Agent/AzCLI/AzCLIAgent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ namespace ShellCopilot.Azure.CLI;
public sealed class AzCLIAgent : ILLMAgent
{
public string Name => "az-cli";
public string Description => "This AI assistant can help generate Azure CLI scripts or commands for managing Azure resources and end-to-end scenarios that involve multiple Azure resources.";
public string Description => "This AI assistant can help generate Azure CLI scripts or commands for managing Azure resources and end-to-end scenarios that involve multiple different Azure resources.";
public List<string> SampleQueries => [
"Create a VM with a public IP address",
"How to create a web app?",
Expand Down
8 changes: 3 additions & 5 deletions shell/ShellCopilot.Azure.Agent/AzPS/AzPSAgent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ namespace ShellCopilot.Azure.PowerShell;
public sealed class AzPSAgent : ILLMAgent
{
public string Name => "az-ps";
public string Description => "This AI assistant can help provide Azure PowerShell scripts or commands for managing Azure resources and end-to-end scenarios that involve multiple Azure resources.";
public string Description => "This AI assistant can help generate Azure PowerShell scripts or commands for managing Azure resources and end-to-end scenarios that involve multiple different Azure resources.";
public List<string> SampleQueries => [
"Create a VM with a public IP address",
"How to create a web app?",
"Backup an Azure SQL database to a storage container"
"How to stop all VMs with the port 22 opened?",
"Create a container app using docker image nginx"
];
public Dictionary<string, string> LegalLinks { private set; get; } = null;
public string SettingFile { private set; get; } = null;
Expand All @@ -33,11 +33,9 @@ public void Initialize(AgentConfig config)
SettingFile = Path.Combine(_configRoot, SettingFileName);

string tenantId = null;
string subscriptionId = null;
if (config.Context is not null)
{
config.Context?.TryGetValue("tenant", out tenantId);
config.Context.TryGetValue("subscription", out subscriptionId);
}

LegalLinks = new Dictionary<string, string>
Expand Down

0 comments on commit e40e77f

Please sign in to comment.