Skip to content

Enable the pluginstore feature when talking to Azure Copilot and update the topic name for CLI handler #337

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 12, 2025
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
7 changes: 6 additions & 1 deletion shell/agents/Microsoft.Azure.Agent/ChatSession.cs
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,9 @@ internal ChatSession(HttpClient httpClient)
["getformstate"] = true,
["notificationcopilotbuttonallerror"] = false,
["chitchatprompt"] = true,
["azurepluginstore"] = true,
// TODO: the streaming is slow and not sending chunks, very clumsy for now.
// ["streamresponse"] = true,
// ["azurepluginstore"] = true,
};
}

Expand Down Expand Up @@ -239,6 +239,11 @@ private HttpRequestMessage PrepareForChat(string input)
content = new {
flights = _flights
}
},
new {
contentType = Utils.JsonContentType,
name = "azurecopilot/authorization",
content = $"Bearer {_accessToken.Token}"
}
},
};
Expand Down
2 changes: 1 addition & 1 deletion shell/agents/Microsoft.Azure.Agent/Schema.cs
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ internal class CopilotActivity
{
public const string ConversationStateName = "azurecopilot/conversationstate";
public const string SuggestedResponseName = "azurecopilot/suggesteduserresponses";
public const string CLIHandlerTopic = "CLIHandler";
public const string CLIHandlerTopic = "generate_azure_cli_scripts";

public string Type { get; set; }
public string Id { get; set; }
Expand Down