Skip to content

Commit

Permalink
chore: save
Browse files Browse the repository at this point in the history
  • Loading branch information
qingtong committed Aug 3, 2024
1 parent a11edc4 commit 974c2ae
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions public/ai-agent-pattern-persistence/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ AI 应用的状态持久化(Persistence)可以让用户在多轮交互中共
1. checkpointer: 当前对话保存的形式,比如 memory(内存)或 sqliteSaver(关系数据库)
2. thread: 当前对话的唯一 ID,历史会话检索需要基于上下文同一 thread

![checkpointer](./images//checkpointer.png)

以 MessageGraph 为例,我们尝试实现 Persistence:

### 定义图结构
Expand Down

0 comments on commit 974c2ae

Please sign in to comment.