Skip to content
masterclass Buddy

AI Agents · Concept

Tree of Thoughts

Use LangMem to turn an agent's experience into structured episodic memories. Define an episode schema with Pydantic and pass it to create_memory_manager.

Last updated

Syntax

create_memory_manager(Episode)

In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.

Subscribe
  • LangMem
  • semantic memory
  • experience replay
  • Pydantic BaseModel
  • Field

Source: How to Extract Episodic Memories. Checked 2026-11-03.