文章目录
- AI(学习笔记第三十八课)langchain v1.0 tutorial (4)
- 1. Persistence
- 1.1 `Checkpoints`
- 1.1.1 为什么需要`checkpoints`
- 1.1.2 关键概念`concept`
- 1.2 get and update state
- 1.2 get state history
- 1.3 Find a specific checkpoint
- 1.4 Replay
- 1.5 update state
AI(学习笔记第三十八课)langchain v1.0 tutorial (4)
Persistence
1. Persistence
persistence让langgraph能够拥有记忆,即对于thread或者application级别提供记忆功能,以至于能够resume每个thread或者积累每个application的key/value。persistence分为两种:
- Checkpointers
- Stores
checkpointers用来记载单独的thread,同时stores是application为级别的stores,可以跨越thread。
最简单的persistence和sto