You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: dotnet/samples/GettingStarted/AgentWithMemory/README.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,3 +7,5 @@ These samples show how to create an agent with the Agent Framework that uses Mem
7
7
|[Chat History memory](./AgentWithMemory_Step01_ChatHistoryMemory/)|This sample demonstrates how to enable an agent to remember messages from previous conversations.|
8
8
|[Memory with MemoryStore](./AgentWithMemory_Step02_MemoryUsingMem0/)|This sample demonstrates how to create and run an agent that uses the Mem0 service to extract and retrieve individual memories.|
9
9
|[Custom Memory Implementation](./AgentWithMemory_Step03_CustomMemory/)|This sample demonstrates how to create a custom memory component and attach it to an agent.|
10
+
11
+
> **See also**: [Memory Search with Foundry Agents](../FoundryAgents/FoundryAgents_Step26_MemorySearch/) - demonstrates using the built-in Memory Search tool with Azure Foundry Agents.
Copy file name to clipboardExpand all lines: dotnet/samples/GettingStarted/FoundryAgents/FoundryAgents_Step26_MemorySearch/Program.cs
+34-16Lines changed: 34 additions & 16 deletions
Original file line number
Diff line number
Diff line change
@@ -8,22 +8,24 @@
8
8
usingAzure.AI.Projects.OpenAI;
9
9
usingAzure.Identity;
10
10
usingMicrosoft.Agents.AI;
11
+
usingOpenAI.Responses;
11
12
12
13
stringendpoint=Environment.GetEnvironmentVariable("AZURE_FOUNDRY_PROJECT_ENDPOINT")??thrownewInvalidOperationException("AZURE_FOUNDRY_PROJECT_ENDPOINT is not set.");
// NOTE: Memory stores must be created beforehand via Azure Portal or Python SDK.
17
18
// The .NET SDK currently only supports using existing memory stores with agents.
18
-
stringmemoryStoreName=Environment.GetEnvironmentVariable("AZURE_AI_MEMORY_STORE_NAME")??thrownewInvalidOperationException("AZURE_AI_MEMORY_STORE_NAME is not set.");
19
+
stringmemoryStoreName=Environment.GetEnvironmentVariable("AZURE_FOUNDRY_MEMORY_STORE_NAME")??thrownewInvalidOperationException("AZURE_FOUNDRY_MEMORY_STORE_NAME is not set.");
19
20
20
21
conststringAgentInstructions="""
21
22
You are a helpful assistant that remembers past conversations.
22
23
Use the memory search tool to recall relevant information from previous interactions.
23
24
When a user shares personal details or preferences, remember them for future conversations.
0 commit comments