.NET: Add Foundry SharePoint Tool Sample#4227
Merged
crickman merged 1 commit intomicrosoft:mainfrom Feb 25, 2026
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR adds a new SharePoint grounding sample (Step 22) to the FoundryAgents getting started samples. The sample demonstrates how to use the SharePoint grounding tool to search and retrieve information from SharePoint sites within AI agents.
Changes:
- Added a new sample directory
FoundryAgents_Step22_SharePointwith Program.cs, README.md, and project file - Updated the main FoundryAgents README.md to include the new SharePoint sample in the table of contents
- Demonstrates two agent creation approaches: using MEAI abstraction and native SDK
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 4 comments.
| File | Description |
|---|---|
| dotnet/samples/GettingStarted/FoundryAgents/README.md | Added reference to the new SharePoint grounding sample in the samples index |
| dotnet/samples/GettingStarted/FoundryAgents/FoundryAgents_Step22_SharePoint/README.md | Documentation for the SharePoint grounding sample including prerequisites, setup, and expected behavior |
| dotnet/samples/GettingStarted/FoundryAgents/FoundryAgents_Step22_SharePoint/Program.cs | Implementation showing SharePoint grounding tool usage with two agent creation patterns |
| dotnet/samples/GettingStarted/FoundryAgents/FoundryAgents_Step22_SharePoint/FoundryAgents_Step22_SharePoint.csproj | Project configuration with required dependencies and compiler settings |
dotnet/samples/GettingStarted/FoundryAgents/FoundryAgents_Step22_SharePoint/README.md
Outdated
Show resolved
Hide resolved
dotnet/samples/GettingStarted/FoundryAgents/FoundryAgents_Step22_SharePoint/Program.cs
Outdated
Show resolved
Hide resolved
dotnet/samples/GettingStarted/FoundryAgents/FoundryAgents_Step22_SharePoint/Program.cs
Outdated
Show resolved
Hide resolved
dotnet/samples/GettingStarted/FoundryAgents/FoundryAgents_Step22_SharePoint/Program.cs
Show resolved
Hide resolved
6ba4dc4 to
9bdb3b0
Compare
9bdb3b0 to
9911c09
Compare
crickman
approved these changes
Feb 25, 2026
westey-m
approved these changes
Feb 25, 2026
This was referenced Feb 27, 2026
This was referenced Mar 2, 2026
Open
Open
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation and Context
Closes #3674
Adds a new FoundryAgents sample demonstrating how to use the SharePoint grounding tool with AI Agents. This enables agents to search and retrieve information from SharePoint sites via Azure Foundry.
Description
Adds
FoundryAgents_Step22_SharePointsample with:AgentTool.CreateSharepointTool()+AsAITool()wrapperPromptAgentDefinitionwith nativeAgentTool.CreateSharepointTool()SharePointGroundingToolOptionsand project connectionsFiles added/modified:
Program.cs— Sample implementation with both MEAI and Native SDK approachesFoundryAgents_Step22_SharePoint.csproj— Project file targeting net10.0README.md— Sample documentation with prerequisites and usage instructionsFoundryAgents/README.md— Updated samples table with Step 22 entryValidated end-to-end against
agents-e2e-tests-westus2project withgpt-4odeployment.Contribution Checklist