← Agentic AI
Lesson 3 of 4
Memory and context
Watch, read the card, then practise. Agent memory · Managing context
The video for this lesson is being recorded.
Meanwhile, the notes below and the 60-second cards cover the same ideas.
Practise this topicAgent memory
Short-term memory is the current conversation; long-term memory is saved notes the agent looks up later.
Remember: Save facts, not whole conversations.
Managing context
Context management keeps the most useful information inside the model's context window as a session grows.
Remember: Every token in the window should earn its place.
Try the example in Code Lab
memory = ["prefers Hindi explanations", "weak in SQL joins"] print([m for m in memory if "join" in m])