Skip to content

.NET: Add Foundry Agents Tool Sample - Bing Custom Search - #3701

Merged
Roger Barreto (rogerbarreto) merged 7 commits into
microsoft:mainfrom
rogerbarreto:feature/3674-bing-custom-search
Feb 24, 2026
Merged

.NET: Add Foundry Agents Tool Sample - Bing Custom Search#3701
Roger Barreto (rogerbarreto) merged 7 commits into
microsoft:mainfrom
rogerbarreto:feature/3674-bing-custom-search

Conversation

@rogerbarreto

@rogerbarretoRoger Barreto (rogerbarreto) commented Feb 5, 2026

Copy link
Copy Markdown
Member

Motivation and Context

Description

Adds a Foundry Agents sample demonstrating Bing Custom Search tool integration with two agent creation approaches:

  • Option 1 (MEAI): Uses AsAITool() wrapping for portable, abstraction-first agent creation
  • Option 2 (Native SDK): Uses PromptAgentDefinition with AgentVersionCreationOptions directly

Includes README with connection ID and instance name setup guidance.

Contribution Checklist

  • The code builds clean without any errors or warnings
  • The PR follows the Contribution Guidelines
  • All unit tests pass, and I have added new tests where possible
  • Is this a breaking change? No

@markwallace-microsoftMark Wallace (markwallace-microsoft) added documentation Usage: [Issues, PRs], Target: documentation in the code base and learn docs .NET Usage: [Issues, PRs], Target: .Net labels Feb 5, 2026
@github-actionsgithub-actionsBot changed the title .Net: Add Foudry Agents Tool Sample - Bing Custom Search [WIP].NET: Add Foudry Agents Tool Sample - Bing Custom Search [WIP]Feb 5, 2026
@rogerbarretoRoger Barreto (rogerbarreto) changed the title .NET: Add Foudry Agents Tool Sample - Bing Custom Search [WIP].NET: Add Foundry Agents Tool Sample - Bing Custom Search [WIP]Feb 5, 2026
…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
@rogerbarreto
Roger Barreto (rogerbarreto) marked this pull request as ready for review February 23, 2026 19:11
CopilotAI review requested due to automatic review settings February 23, 2026 19:11
@rogerbarretoRoger Barreto (rogerbarreto) changed the title .NET: Add Foundry Agents Tool Sample - Bing Custom Search [WIP].NET: Add Foundry Agents Tool Sample - Bing Custom SearchFeb 23, 2026
@rogerbarretoRoger Barreto (rogerbarreto) moved this from In Progress to In Review in Agent FrameworkFeb 23, 2026

CopilotAI 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 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
FileDescription
dotnet/samples/GettingStarted/FoundryAgents/README.mdAdded table entry for new Bing Custom Search sample (Step 21)
dotnet/samples/GettingStarted/FoundryAgents/FoundryAgents_Step21_BingCustomSearch/README.mdComprehensive documentation covering setup, prerequisites, two agent creation approaches, and usage instructions
dotnet/samples/GettingStarted/FoundryAgents/FoundryAgents_Step21_BingCustomSearch/Program.csSample implementation showing Bing Custom Search integration with two agent creation patterns
dotnet/samples/GettingStarted/FoundryAgents/FoundryAgents_Step21_BingCustomSearch/FoundryAgents_Step21_BingCustomSearch.csprojProject configuration with required package and project references
dotnet/agent-framework-dotnet.slnxAdded new project to solution file in correct alphabetical position

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentationUsage: [Issues, PRs], Target: documentation in the code base and learn docs.NETUsage: [Issues, PRs], Target: .Net

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

5 participants

@rogerbarreto@SergeyMenshykh@westey-m@markwallace-microsoft