Skip to content

Commit ae8b67c

Browse files
authored
Update GKE and Cloud Run notebooks for Memory in Agents (#2425)
1 parent 46dbbea commit ae8b67c

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

.github/actions/spelling/line_forbidden.patterns

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -286,9 +286,6 @@
286286
# Should be TPU or TPUs
287287
\btpus?\b
288288

289-
# Should be GKE
290-
\sgke\s
291-
292289
# Should be GCS
293290
\sgcs\s
294291

agents/cloud_run/agents_with_memory/get_started_with_memory_for_adk_in_cloud_run.ipynb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,9 @@
290290
"* PreloadMemory: Always retrieve memory at the beginning of each turn (similar to a callback).\n",
291291
"* LoadMemory: Retrieve memory when your agent decides it would be helpful.\n",
292292
"\n",
293-
"By default, ADK uses [`InMemoryMemoryService`](https://github.com/google/adk-python/blob/main/src/google/adk/memory/in_memory_memory_service.py).\n",
293+
"By default, ADK doesn't use any long-term memory service.\n",
294+
"For prototyping and simple testing scenarios where persistence isn't required, you can leverage\n",
295+
"[`InMemoryMemoryService`](https://github.com/google/adk-python/blob/main/src/google/adk/memory/in_memory_memory_service.py).\n",
294296
"It persists **all** information in-memory, and just like `InMemorySessionService`, if ADK's runner is shut down, all session data is lost.\n",
295297
"With in-memory sessions, the events are not condensed, and information is not extracted from them.\n",
296298
"\n",

agents/gke/agents_with_memory/get_started_with_memory_for_adk_in_gke.ipynb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,9 @@
292292
"* PreloadMemory: Always retrieve memory at the beginning of each turn (similar to a callback).\n",
293293
"* LoadMemory: Retrieve memory when your agent decides it would be helpful.\n",
294294
"\n",
295-
"By default, ADK uses [`InMemoryMemoryService`](https://github.com/google/adk-python/blob/main/src/google/adk/memory/in_memory_memory_service.py).\n",
295+
"By default, ADK doesn't use any long-term memory service.\n",
296+
"For prototyping and simple testing scenarios where persistence isn't required, you can leverage\n",
297+
"[`InMemoryMemoryService`](https://github.com/google/adk-python/blob/main/src/google/adk/memory/in_memory_memory_service.py).\n",
296298
"It persists **all** information in-memory, and just like `InMemorySessionService`, if ADK's runner is shut down, all session data is lost.\n",
297299
"With in-memory sessions, the events are not condensed, and information is not extracted from them.\n",
298300
"\n",

0 commit comments

Comments
 (0)