Segmentors
pkgs/genx/segmentors 将 conversation 内容整理为 segment、entity 和 relation,为 memory 写入与后续 recall 提供结构化结果。
核心结构与主函数
| 符号 | 作用 |
|---|---|
Segmentor | Conversation segmentation contract。 |
Input | 承载待分析的 conversation 输入。 |
Result | 返回 segments、entities 与 relations。 |
Schema | 约束可抽取的实体和关系结构。 |
GenX | 使用 Generator 完成结构化 segmentation。 |
Process | 通过默认 mux 选择 Segmentor 并处理输入。 |
Segmentors 只负责内容结构化,不保存 conversation、entity graph 或 vector index;这些持久化职责属于 Agent memory 与 stores。