23 lines
562 B
Markdown
23 lines
562 B
Markdown
# 数据流
|
|
|
|
## Agent Run
|
|
|
|
```mermaid
|
|
flowchart TD
|
|
A["Request"] --> B["Create Run"]
|
|
B --> C["Build Context"]
|
|
C --> D["Memory Retrieval"]
|
|
D --> E["Planning"]
|
|
E --> F["Model"]
|
|
F --> G["Tool"]
|
|
G --> H["Observation"]
|
|
H --> I["Evaluation"]
|
|
I -->|continue| E
|
|
I -->|finish| J["Result"]
|
|
H --> K["Memory Consolidation"]
|
|
```
|
|
|
|
## 数据原则
|
|
|
|
短期状态进入 Redis;需要长期保存的数据进入 PostgreSQL;语义检索数据进入 VectorStore;关系型知识进入 GraphStore;二进制内容进入 FileStorage。
|