Skip to content

adding Retrieval Bot sample#166

Merged
MattB-msft merged 10 commits into
microsoft:mainfrom
sakov-ms:RetrievalBotBranch
Jul 28, 2025
Merged

adding Retrieval Bot sample#166
MattB-msft merged 10 commits into
microsoft:mainfrom
sakov-ms:RetrievalBotBranch

Conversation

@sakov-ms

Copy link
Copy Markdown
Contributor

Added the Retrieval Bot sample that will work for Build.

@gurubhg
gurubhg requested a review from Copilot June 4, 2025 13:00

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds a new Retrieval Bot sample for the Build Conference 2025, including all necessary solution, project, configuration, plugin, and controller files to launch a .NET web service bot that integrates with Microsoft Graph and Semantic Kernel. Key changes include:

  • Addition of multiple solution and project files along with configuration files (appsettings.json, .gitignore, and manifest.json)
  • Implementation of various plugins (e.g., AdaptiveCard, SendMail, BuildRetrieval) and an agent class that leverages them
  • Setup of authentication and bot controllers for handling messages

Reviewed Changes

Copilot reviewed 124 out of 124 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
Microsoft.Agents.M365Copilot.sln Adds new solution to support the Retrieval Bot sample
.gitignore Includes standard Visual Studio exclusions for the new project
appsettings.json Configures authentication, token validation, and AI service parameters for the bot
RetrievalBot.sln & RetrievalBot.csproj Define the solution and project structure; note duplicate package references
RetrievalBot.cs Implements the core bot functionality using the Retrieval Agent
Various Plugins & Controllers Introduce functionality for adaptive cards, email sending, contact retrieval, etc.
AspNetExtentions.cs & manifest.json Provide authentication setup and app manifest for Teams integration
Comments suppressed due to low confidence (1)

samples/complex/RetrievalBot/dotnet/RetrievalBot/RetrievalBot.cs:30

  • [nitpick] The variable name 'weatherAgent' is misleading since the agent handles retrieval tasks; consider renaming it to 'retrievalAgent' for clarity.
RetrievalAgent weatherAgent = new RetrievalAgent(_kernel, this);

Comment thread samples/complex/RetrievalBot/dotnet/RetrievalBot/appsettings.json Outdated
Comment thread samples/complex/RetrievalBot/dotnet/RetrievalBot/RetrievalBot.csproj Outdated
@github-actions github-actions Bot added Samples Changes to Samples From Fork labels Jul 16, 2025
@MattB-msft
MattB-msft enabled auto-merge July 22, 2025 03:31
@MattB-msft
MattB-msft merged commit 6b7688b into microsoft:main Jul 28, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

From Fork Samples Changes to Samples

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants