Conversation
There was a problem hiding this comment.
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; | |||
There was a problem hiding this comment.
There is an invisible character (Byte Order Mark) at the beginning of the file which may cause issues.
| namespace SupportCenter.ApiService.Agents.Conversation; | |
| namespace SupportCenter.ApiService.Agents.Conversation; |
There was a problem hiding this comment.
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. |
There was a problem hiding this comment.
The word 'frameowrk' is misspelled. It should be 'framework'.
| 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. |
| Input: {input} | ||
| {guidelines} | ||
| """; | ||
| var result = await chatClient.CompleteAsync(prompt); |
There was a problem hiding this comment.
Add a null check for result.Message to ensure it is not null before accessing Text.
| 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; | |
| } |
| var enhancedContext = await AddKnowledge(instruction, "waf",context); | ||
| return await CallFunction(PMSkills.Readme, enhancedContext); | ||
| var guidelines = await AddKnowledge(instruction, "waf"); | ||
| var prompt = $$$"""" |
There was a problem hiding this comment.
The triple dollar signs ($$$) used in the prompt string might be a typo. It should be double dollar signs ($$).
| var prompt = $$$"""" | |
| var prompt = $$"""" |
There was a problem hiding this comment.
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. |
There was a problem hiding this comment.
The word 'frameowrk' is misspelled. It should be 'framework'.
| 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. |
| var enhancedContext = await AddKnowledge(instruction, "waf",context); | ||
| return await CallFunction(PMSkills.Readme, enhancedContext); | ||
| var guidelines = "";// await AddKnowledge(instruction, "waf"); | ||
| var prompt = $$$"""" |
There was a problem hiding this comment.
The string interpolation syntax $$$""" is incorrect. It should be $""".
| var prompt = $$$"""" | |
| var prompt = $"""" |
| catch (Exception ex) | ||
| { | ||
| _logger.LogError(ex, "Error generating code"); | ||
| logger.LogError(ex, "Error generating code"); |
There was a problem hiding this comment.
The logger variable is not defined. It should be initialized properly, possibly as a private readonly field like _logger.
| logger.LogError(ex, "Error generating code"); | |
| _logger.LogError(ex, "Error generating code"); |
No description provided.