Workshop: Reuse Knowledge for Agentic AI
with Agent Memory and Semantic Caching
Exercise 1
Exercise 2
Exercise 3
Exercise 4
Exercise 5
Exercise 6
Exercise 7
Solve next exercise ▸
‹
›
1 of 7
A browser talks to a FastAPI server. The server runs a LangGraph graph made of an agent, its tools and, as the exercises are solved, memory and cache steps. The memory steps and tools use agent memory, and the cache steps use a semantic cache. Both are kept in Redis. Pieces that are not built yet are greyed out.
index.py, graph.py
Browser
chat page
frontend/
FastAPI server
POST /api/chat
chat_routes.py
chat_service.py
Check
cache
nodes.py
1
Retrieve
memories
nodes.py
1
Agent
model call
nodes.py
2
Store in
cache
nodes.py
5
return
response
Tools
3
Memory tools
memory_tools.py
save_memory
search_memories
Google Maps tools
maps_tools.py
search_places
lookup_weather
OpenAI
Google Maps
MCP server
Agent
memory
Session memory
working memory
session_memory.py
Long-term memory
preferences and past trips
long_term_memory.py
Semantic cache
similar questions
and their answers
public_cache.py
Redis
message
events
message
agent
response
miss
hit
check if this was asked before
store the answer
model calls
MCP
conversation history
Legend
Already in the app
Not built yet
Built by you in an exercise