Skip to content

Comments

.NET: Add Foundry Agents Tool Sample - Memory Search#3700

Merged
rogerbarreto merged 5 commits intomicrosoft:mainfrom
rogerbarreto:feature/3674-memory-search
Feb 23, 2026
Merged

.NET: Add Foundry Agents Tool Sample - Memory Search#3700
rogerbarreto merged 5 commits intomicrosoft:mainfrom
rogerbarreto:feature/3674-memory-search

Conversation

@rogerbarreto
Copy link
Member

@rogerbarreto rogerbarreto commented Feb 5, 2026

Motivation and Context

Adds a sample demonstrating how to use the Memory Search tool with Azure Foundry Agents, enabling agents to recall information from previous conversations.

Description

Adds FoundryAgents_Step26_MemorySearch sample that shows:

  • Creating a memory store with user profile and chat summary support via MemoryStores.CreateMemoryStoreAsync
  • Configuring and attaching a MemorySearchTool to an agent
  • Memory scope isolation per user
  • Multi-turn conversation where the agent recalls previously shared information
  • Inspecting MemorySearchToolCallResponseItem results from agent responses
  • Full resource cleanup (agent + memory store)

The sample is aligned with the official Azure SDK for .NET Memory Search sample.

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? If yes, add "[BREAKING]" prefix to the title of the PR.

@markwallace-microsoft markwallace-microsoft added documentation Improvements or additions to documentation .NET labels Feb 5, 2026
@rogerbarreto rogerbarreto self-assigned this Feb 5, 2026
@github-actions github-actions bot changed the title .Net: Add Foudry Agents Tool Sample - Memory Search [WIP] .NET: Add Foudry Agents Tool Sample - Memory Search [WIP] Feb 5, 2026
@rogerbarreto rogerbarreto changed the title .NET: Add Foudry Agents Tool Sample - Memory Search [WIP] .NET: Add Foundry Agents Tool Sample - Memory Search [WIP] Feb 5, 2026
@rogerbarreto rogerbarreto moved this to In Progress in Agent Framework Feb 12, 2026
@rogerbarreto rogerbarreto changed the title .NET: Add Foundry Agents Tool Sample - Memory Search [WIP] .NET: Add Foundry Agents Tool Sample - Memory Search Feb 18, 2026
@rogerbarreto rogerbarreto marked this pull request as ready for review February 18, 2026 15:42
Copilot AI review requested due to automatic review settings February 18, 2026 15:42
Copy link
Contributor

Copilot AI left a comment

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 sample demonstrating the Memory Search tool integration with AI Agents in the Azure AI Foundry Agent Framework. The sample shows how agents can recall information from previous conversations using memory stores.

Changes:

  • Added a complete Memory Search tool sample with documentation
  • Implemented agent creation with memory store integration and user profile persistence
  • Demonstrated memory indexing, retrieval, and cleanup workflows

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
README.md Provides comprehensive documentation for the Memory Search tool sample, including prerequisites, environment variables, and expected behavior
Program.cs Implements the complete sample showing memory store creation, agent configuration with Memory Search tool, conversation flow, and resource cleanup
FoundryAgents_Step26_MemorySearch.csproj Defines project configuration targeting .NET 10.0 with necessary Azure AI dependencies

…y READMEs

- Add FoundryAgents_Step26_MemorySearch.csproj to agent-framework-dotnet.slnx
- Add Memory Search entry to FoundryAgents/README.md samples table
- Add cross-reference from AgentWithMemory/README.md to MemorySearch sample

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@rogerbarreto rogerbarreto force-pushed the feature/3674-memory-search branch from 1cb200a to 72ddef0 Compare February 20, 2026 11:17
@rogerbarreto rogerbarreto added this pull request to the merge queue Feb 23, 2026
Merged via the queue into microsoft:main with commit 6e4562e Feb 23, 2026
15 checks passed
@github-project-automation github-project-automation bot moved this from In Progress to Done in Agent Framework Feb 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation .NET

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

4 participants