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: articles/sre-agent/memory-system.md
+75-8Lines changed: 75 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ description: Use the SRE Agent memory system to build team knowledge that agents
4
4
author: craigshoemaker
5
5
ms.author: cshoe
6
6
ms.reviewer: cshoe
7
-
ms.date: 12/18/2025
7
+
ms.date: 01/17/2026
8
8
ms.topic: article
9
9
ms.service: azure-sre-agent
10
10
ms.collection: ce-skilling-ai-copilot
@@ -66,7 +66,31 @@ The `SearchMemory` tool retrieves all memory components. It searches across user
66
66
- Custom subagents: Add `SearchMemory` tool to your configuration
67
67
68
68
> [!IMPORTANT]
69
-
> Don't store secrets, credentials, API keys, or sensitive data in any memory component. Memories are shared across your team and indexed for search.
69
+
> Don't store secrets, credentials, API keys, or sensitive data in any memory component. Your team shares memories, and the system indexes them for search.
70
+
71
+
### Enhanced search parameters
72
+
73
+
The `SearchNodes` tool supports filtering options for more targeted searches:
74
+
75
+
| Parameter | Type | Description |
76
+
|-----------|------|-------------|
77
+
|`entityType`| string | Filter results by entity type, such as `Incident`, `Service`, or `Resource`. |
78
+
|`includeNeighbors`| bool | Include connected nodes in the search results. |
79
+
80
+
**Example:**
81
+
82
+
```text
83
+
Search for all incidents related to "database timeout" and include connected resources
84
+
```
85
+
86
+
When you set `includeNeighbors` to `true`, the search returns not only matching incident nodes but also their connected:
87
+
88
+
- Resources
89
+
- Services
90
+
- Related incidents
91
+
- Linked documents
92
+
93
+
By showing the full relationship graph around matching nodes, you get richer context during investigations.
70
94
71
95
## Quick start
72
96
@@ -140,7 +164,7 @@ Save facts, standards, or context for future conversations.
140
164
#remember Team uses Kusto for logs. Workspace is "myteam-prod-logs"
141
165
```
142
166
143
-
Content is embedded by using OpenAI, stored in Azure AI Search, and becomes available for automatic retrieval across all conversations. You see a confirmation: `✅ Agent Memory saved.`
167
+
The system embeds content by using OpenAI, stores it in Azure AI Search, and makes it available for automatic retrieval across all conversations. You see a confirmation: `✅ Agent Memory saved.`
144
168
145
169
#### Remove memories by using `#forget`
146
170
@@ -159,7 +183,7 @@ Delete previously saved memories by searching for them.
159
183
#forget production environment location
160
184
```
161
185
162
-
The system searches your memories semantically for the best match, shows you the content, and deletes it. You see a confirmation: `✅ Agent Memory forgotten: [deleted content]`
186
+
The system semantically searches your memories for the best match, shows you the content, and deletes it. You see a confirmation: `✅ Agent Memory forgotten: [deleted content]`
163
187
164
188
#### Query memories by using `#retrieve`
165
189
@@ -178,7 +202,7 @@ Explicitly search and display saved memories without triggering agent reasoning.
178
202
#retrieve deployment process
179
203
```
180
204
181
-
Searches memories semantically, and then uses the top five matches to synthesize a response. Both the individual memories and the synthesized answer are displayed.
205
+
The system semantically searches memories. It uses the top five matches to synthesize a response. Both the individual memories and the synthesized answer are displayed.
182
206
183
207
### Scope and storage
184
208
@@ -205,6 +229,49 @@ The knowledge base provides direct document upload capabilities for runbooks, tr
205
229
206
230
The portal automatically validates, uploads, and indexes files.
207
231
232
+
### Upload via agent tool
233
+
234
+
The agent can upload documents directly to the knowledge base by using the `UploadKnowledgeDocument` tool. This method is useful when:
235
+
236
+
- You want to capture troubleshooting steps discovered during an investigation.
237
+
- You need to add runbooks generated from incident resolutions.
238
+
- You want to programmatically add documentation without UI access.
239
+
240
+
**Tool: UploadKnowledgeDocument**
241
+
242
+
| Parameter | Type | Required | Description |
243
+
|-----------|------|----------|-------------|
244
+
|`fileName`| string | Yes | Filename with extension (for example, `runbook-database-issues.md`). Must be `.md` or `.txt`. |
245
+
|`content`| string | Yes | Full document content in plain text or Markdown format. |
246
+
|`triggerIndexing`| bool | No | Trigger immediate indexing (default: `true`). Set to `false` for batch uploads. |
247
+
248
+
**Example usage:**
249
+
250
+
Ask the agent:
251
+
252
+
> "Save our troubleshooting steps for the database timeout issue to the knowledge base"
253
+
254
+
The agent uses `UploadKnowledgeDocument` to:
255
+
256
+
1. Create a document with an appropriate filename.
257
+
1. Format the content in Markdown.
258
+
1. Upload the document to Azure Blob Storage.
259
+
1. Trigger indexing for immediate searchability.
260
+
261
+
**Constraints:**
262
+
263
+
- Maximum file size: 16 MB.
264
+
- Supported extensions: `.md` and `.txt` only.
265
+
- If a document with the same filename exists, the agent overwrites it.
266
+
267
+
**Error handling:**
268
+
269
+
| Error | Resolution |
270
+
|-------|------------|
271
+
| "Agent memory is disabled" | Enable agent memory in configuration. |
272
+
| "Invalid file extension" | Use `.md` or `.txt` extension only. |
273
+
| "Document content exceeds maximum size" | Split large documents into smaller files. |
274
+
208
275
### Manage documents
209
276
210
277
-**View**: Go to **Settings** > **Knowledge Base** to see all uploaded documents.
@@ -215,7 +282,7 @@ The knowledge base provides direct document upload capabilities for runbooks, tr
215
282
216
283
## Session insights
217
284
218
-
As the agent handles your incidents, it learns. Session insights capture what worked, what didn't, and key learnings from each session. The agent automatically applies that knowledge to help with similar issues in the future.
285
+
As the agent handles your incidents, it learns. Session insights capture what worked, what didn't, and key learnings from each session. The agent automatically applies that knowledge to help with similar problems in the future.
219
286
220
287
### Automatic improvement
221
288
@@ -240,11 +307,11 @@ While session insights work automatically, reviewing them can surface valuable p
240
307
| Telemetry gaps made diagnosis harder | Improve logging or add metrics |
241
308
| Alert triggered but wasn't actionable | Tune the alert or add runbook links |
242
309
243
-
Think of session insights as a window into what the agent learns. You might find something worth acting on, or you might just let the agent handle any surfaced issues.
310
+
Think of session insights as a window into what the agent learns. You might find something worth acting on, or you might just let the agent handle any surfaced problems.
244
311
245
312
### How it works
246
313
247
-
Session insights create a continuous improvement loop: the agent captures symptoms, steps, root cause, and pitfalls from each session, then retrieves relevant past insights when similar issues arise. This automatic cycle helps the agent resolve problems faster over time.
314
+
Session insights create a continuous improvement loop: the agent captures symptoms, steps, root cause, and pitfalls from each session, then retrieves relevant past insights when similar problems arise. This automatic cycle helps the agent resolve problems faster over time.
0 commit comments