Skip to content
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

Feature/support center audio #102

Draft
wants to merge 17 commits into
base: main
Choose a base branch
from
Draft

Conversation

kostapetan
Copy link
Collaborator

No description provided.

Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot reviewed 120 out of 134 changed files in this pull request and generated 1 comment.

Files not reviewed (14)
  • OAgents.sln: Language not supported
  • samples/support-center/.gitignore: Language not supported
  • samples/support-center/SupportCenter.ApiService/Agents/Dispatcher/Dispatcher.cs: Evaluated as low risk
  • samples/support-center/SupportCenter.ApiService/Agents/Invoice/Invoice.cs: Evaluated as low risk
  • samples/support-center/SupportCenter.ApiService/Agents/QnA/QnA.cs: Evaluated as low risk
  • samples/support-center/SupportCenter.ApiService/Agents/Conversation/Conversation.cs: Evaluated as low risk
  • samples/support-center/SupportCenter.ApiService/Agents/CustomerInfo/CustomerInfo.cs: Evaluated as low risk
  • samples/support-center/SupportCenter.ApiService/Agents/Discount/Discount.cs: Evaluated as low risk
  • samples/support-center/SupportCenter.ApiService/Agents/Conversation/ConversationPrompts.cs: Evaluated as low risk
  • samples/support-center/SupportCenter.ApiService/Agents/Invoice/InvoiceState.cs: Evaluated as low risk
  • samples/support-center/SupportCenter.ApiService/Agents/Dispatcher/DispatcherPrompts.cs: Evaluated as low risk
  • samples/support-center/SupportCenter.ApiService/Agents/QnA/QnAPrompts.cs: Evaluated as low risk
  • samples/support-center/SupportCenter.ApiService/Agents/CustomerInfo/CustomerInfoState.cs: Evaluated as low risk
  • samples/support-center/SupportCenter.ApiService/Agents/Invoice/InvoicePrompts.cs: Evaluated as low risk

@@ -0,0 +1,6 @@
namespace SupportCenter.ApiService.Agents.Conversation;
Copy link
Preview

Copilot AI Jan 30, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is an invisible character (Byte Order Mark) at the beginning of the file which may cause issues.

Suggested change
namespace SupportCenter.ApiService.Agents.Conversation;
namespace SupportCenter.ApiService.Agents.Conversation;

Copilot is powered by AI, so mistakes are possible. Review output carefully before use.

Positive Feedback
Negative Feedback

Provide additional feedback

Please help us improve GitHub Copilot by sharing more details about this comment.

Please select one or more of the options
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot reviewed 163 out of 178 changed files in this pull request and generated 3 comments.

Files not reviewed (15)
  • OAgents.sln: Language not supported
  • nuget.config: Language not supported
  • samples/gh-flow/src/Microsoft.AI.DevTeam.Dapr/Microsoft.AI.DevTeam.Dapr.csproj: Language not supported
  • samples/gh-flow/src/Microsoft.AI.DevTeam/Microsoft.AI.DevTeam.csproj: Language not supported
  • samples/gh-flow/src/Microsoft.AI.DevTeam/Agents/ProductManager/PMPrompts.cs: Evaluated as low risk
  • samples/gh-flow/src/Microsoft.AI.DevTeam.Dapr/Agents/Architect/Architect.cs: Evaluated as low risk
  • samples/gh-flow/src/Microsoft.AI.DevTeam/Agents/DeveloperLead/DeveloperLead.cs: Evaluated as low risk
  • samples/gh-flow/src/Microsoft.AI.DevTeam/Agents/DeveloperLead/DevLeadPrompts.cs: Evaluated as low risk
  • samples/gh-flow/src/Microsoft.AI.DevTeam/Agents/Developer/DeveloperPrompts.cs: Evaluated as low risk
  • samples/gh-flow/src/Microsoft.AI.DevTeam/Agents/Architect/Architect.cs: Evaluated as low risk
  • samples/gh-flow/src/seed-memory/Program.cs: Evaluated as low risk
  • samples/gh-flow/src/Microsoft.AI.DevTeam/Agents/Hubber.cs: Evaluated as low risk
  • samples/gh-flow/src/Microsoft.AI.DevTeam.Dapr/Program.cs: Evaluated as low risk
  • samples/gh-flow/src/Microsoft.AI.DevTeam.Dapr/Agents/ProductManager/ProductManager.cs: Evaluated as low risk
  • samples/gh-flow/src/Microsoft.AI.DevTeam.Dapr/Agents/Developer/Developer.cs: Evaluated as low risk
Comments suppressed due to low confidence (2)

samples/gh-flow/src/Microsoft.AI.DevTeam/Agents/DeveloperLead.cs:8

  • The class declaration is missing the 'class' keyword.
public class DeveloperLead([PersistentState("state", "messages")] IPersistentState<AgentState<DeveloperLeadState>> state, IChatClient chatClient, ILogger<DeveloperLead> logger) : AiAgent<DeveloperLeadState>(state), ILeadDevelopers

samples/gh-flow/src/Microsoft.AI.DevTeam/Agents/ProductManager.cs:62

  • The word 'frameowrk' is misspelled. It should be 'framework'.
Make prescriptive architecture, language, and frameowrk choices, do not provide a range of choices.

var prompt = $$"""
You are a Dev Lead for an application team, building the application described below.
Please break down the steps and modules required to develop the complete application, describe each step in detail.
Make prescriptive architecture, language, and frameowrk choices, do not provide a range of choices.
Copy link
Preview

Copilot AI Feb 5, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The word 'frameowrk' is misspelled. It should be 'framework'.

Suggested change
Make prescriptive architecture, language, and frameowrk choices, do not provide a range of choices.
Make prescriptive architecture, language, and framework choices, do not provide a range of choices.

Copilot is powered by AI, so mistakes are possible. Review output carefully before use.

Positive Feedback
Negative Feedback

Provide additional feedback

Please help us improve GitHub Copilot by sharing more details about this comment.

Please select one or more of the options
Input: {input}
{guidelines}
""";
var result = await chatClient.CompleteAsync(prompt);
Copy link
Preview

Copilot AI Feb 5, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add a null check for result.Message to ensure it is not null before accessing Text.

Suggested change
var result = await chatClient.CompleteAsync(prompt);
var result = await chatClient.CompleteAsync(prompt);
if (result.Message == null)
{
logger.LogError("Received null Message from chatClient.");
return default;
}

Copilot is powered by AI, so mistakes are possible. Review output carefully before use.

Positive Feedback
Negative Feedback

Provide additional feedback

Please help us improve GitHub Copilot by sharing more details about this comment.

Please select one or more of the options
var enhancedContext = await AddKnowledge(instruction, "waf",context);
return await CallFunction(PMSkills.Readme, enhancedContext);
var guidelines = await AddKnowledge(instruction, "waf");
var prompt = $$$""""
Copy link
Preview

Copilot AI Feb 5, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The triple dollar signs ($$$) used in the prompt string might be a typo. It should be double dollar signs ($$).

Suggested change
var prompt = $$$""""
var prompt = $$""""

Copilot is powered by AI, so mistakes are possible. Review output carefully before use.

Positive Feedback
Negative Feedback

Provide additional feedback

Please help us improve GitHub Copilot by sharing more details about this comment.

Please select one or more of the options
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot reviewed 200 out of 215 changed files in this pull request and generated 3 comments.

Files not reviewed (15)
  • OAgents.sln: Language not supported
  • nuget.config: Language not supported
  • samples/gh-flow/src/Microsoft.AI.DevTeam.Dapr/Microsoft.AI.DevTeam.Dapr.csproj: Language not supported
  • samples/gh-flow/src/Microsoft.AI.DevTeam/Microsoft.AI.DevTeam.csproj: Language not supported
  • samples/gh-flow/src/Microsoft.AI.DevTeam/Agents/DeveloperLead/DevLeadPrompts.cs: Evaluated as low risk
  • samples/gh-flow/src/Microsoft.AI.DevTeam/Agents/ProductManager/PMPrompts.cs: Evaluated as low risk
  • samples/gh-flow/src/Microsoft.AI.DevTeam.Dapr/Agents/Architect/Architect.cs: Evaluated as low risk
  • samples/gh-flow/src/Microsoft.AI.DevTeam/Agents/Architect/Architect.cs: Evaluated as low risk
  • samples/gh-flow/src/Microsoft.AI.DevTeam/Agents/DeveloperLead/DeveloperLead.cs: Evaluated as low risk
  • samples/gh-flow/src/Microsoft.AI.DevTeam/Agents/Developer/DeveloperPrompts.cs: Evaluated as low risk
  • samples/gh-flow/src/Microsoft.AI.DevTeam/Agents/Hubber.cs: Evaluated as low risk
  • samples/gh-flow/src/Microsoft.AI.DevTeam.Dapr/Program.cs: Evaluated as low risk
  • samples/gh-flow/src/Microsoft.AI.DevTeam.Dapr/Agents/ProductManager/ProductManager.cs: Evaluated as low risk
  • samples/gh-flow/src/seed-memory/Program.cs: Evaluated as low risk
  • samples/gh-flow/src/Microsoft.AI.DevTeam.Dapr/Agents/DeveloperLead/DeveloperLead.cs: Evaluated as low risk
Comments suppressed due to low confidence (2)

samples/gh-flow/src/Microsoft.AI.DevTeam/Agents/DeveloperLead.cs:99

  • [nitpick] The error message could be more specific. Consider including the exception message.
logger.LogError(ex, "Error creating development plan");

samples/gh-flow/src/Microsoft.AI.DevTeam/Agents/DeveloperLead.cs:50

  • Ensure that the CreatePlan method is covered by tests, especially since it involves complex logic and external dependencies.
public async Task<string> CreatePlan(string ask)

var prompt = $$"""
You are a Dev Lead for an application team, building the application described below.
Please break down the steps and modules required to develop the complete application, describe each step in detail.
Make prescriptive architecture, language, and frameowrk choices, do not provide a range of choices.
Copy link
Preview

Copilot AI Feb 10, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The word 'frameowrk' is misspelled. It should be 'framework'.

Suggested change
Make prescriptive architecture, language, and frameowrk choices, do not provide a range of choices.
Make prescriptive architecture, language, and framework choices, do not provide a range of choices.

Copilot is powered by AI, so mistakes are possible. Review output carefully before use.

Positive Feedback
Negative Feedback

Provide additional feedback

Please help us improve GitHub Copilot by sharing more details about this comment.

Please select one or more of the options
var enhancedContext = await AddKnowledge(instruction, "waf",context);
return await CallFunction(PMSkills.Readme, enhancedContext);
var guidelines = "";// await AddKnowledge(instruction, "waf");
var prompt = $$$""""
Copy link
Preview

Copilot AI Feb 10, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The string interpolation syntax $$$""" is incorrect. It should be $""".

Suggested change
var prompt = $$$""""
var prompt = $""""

Copilot is powered by AI, so mistakes are possible. Review output carefully before use.

Positive Feedback
Negative Feedback

Provide additional feedback

Please help us improve GitHub Copilot by sharing more details about this comment.

Please select one or more of the options
}
catch (Exception ex)
{
_logger.LogError(ex, "Error generating code");
logger.LogError(ex, "Error generating code");
Copy link
Preview

Copilot AI Feb 10, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The logger variable is not defined. It should be initialized properly, possibly as a private readonly field like _logger.

Suggested change
logger.LogError(ex, "Error generating code");
_logger.LogError(ex, "Error generating code");

Copilot is powered by AI, so mistakes are possible. Review output carefully before use.

Positive Feedback
Negative Feedback

Provide additional feedback

Please help us improve GitHub Copilot by sharing more details about this comment.

Please select one or more of the options
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants