Uh oh!
There was an error while loading. Please reload this page.
.NET: Add Foundry Agents Tool Sample - Bing Custom Search - #3701
Conversation
…ions - Add MEAI (Option 1) and Native SDK (Option 2) agent creation patterns - Add DefaultAzureCredential with standard WARNING comment - Add sample to solution file and FoundryAgents README index - Improve README with connection ID/instance name guidance - Fix missing newline at EOF in .csproj - Suppress CS8321 for unused local function pattern Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…nto feature/3674-bing-custom-search # Conflicts: # dotnet/agent-framework-dotnet.slnx # dotnet/samples/GettingStarted/FoundryAgents/README.md
There was a problem hiding this comment.
Pull request overview
This PR adds a new Foundry Agents sample (Step 21) demonstrating Bing Custom Search tool integration. The sample provides two approaches for creating agents: one using MEAI abstraction with AsAITool() wrapping, and another using native SDK types with PromptAgentDefinition. It includes comprehensive documentation on setup requirements, connection ID and instance name configuration, and expected behavior.
Changes:
- Added FoundryAgents_Step21_BingCustomSearch sample with README, Program.cs, and project file
- Updated parent README.md to include the new sample in the table of contents
- Added project reference to the solution file
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
| dotnet/samples/GettingStarted/FoundryAgents/README.md | Added table entry for new Bing Custom Search sample (Step 21) |
| dotnet/samples/GettingStarted/FoundryAgents/FoundryAgents_Step21_BingCustomSearch/README.md | Comprehensive documentation covering setup, prerequisites, two agent creation approaches, and usage instructions |
| dotnet/samples/GettingStarted/FoundryAgents/FoundryAgents_Step21_BingCustomSearch/Program.cs | Sample implementation showing Bing Custom Search integration with two agent creation patterns |
| dotnet/samples/GettingStarted/FoundryAgents/FoundryAgents_Step21_BingCustomSearch/FoundryAgents_Step21_BingCustomSearch.csproj | Project configuration with required package and project references |
| dotnet/agent-framework-dotnet.slnx | Added new project to solution file in correct alphabetical position |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Motivation and Context
Description
Adds a Foundry Agents sample demonstrating Bing Custom Search tool integration with two agent creation approaches:
AsAITool()wrapping for portable, abstraction-first agent creationPromptAgentDefinitionwithAgentVersionCreationOptionsdirectlyIncludes README with connection ID and instance name setup guidance.
Contribution Checklist