feat(context_management): Add memory extractor component and context management toolkit #500 #541
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
When submitting a PR, please confirm the following points and put [x] in the boxes one by one. | 在提出pr时,请确认了以下几点,并逐一使用[x]符号确认勾选。
Checklist | 检查项
Please fill in the specific details of this PR: | 请详细填写本次PR的内容:
Add memory extractor component and context management toolkit that:
新增了记忆提取组件,以及上下文管理工具套件:
添加了记忆提取组件,包含事实性记忆、情景性记忆、语义性记忆、专家经验以及未分类记忆,能够通过配置自动的从短期会话中提取记忆并持久化以及自动加载记忆,默认为文本形式。也可以扩展图形态的记忆。
添加了上下文管理工具套件,用于在会话环境中通过文件的形式管理上下文。典型场景:让不同的子Agent共享相同的环境上下文,或者将数据、代码、搜索内容等长上下文的内容外置到文件中。
给记忆抽取、上下文工具套件添加了基础的测试
Please provide the path of test files and submit screenshots or files of the test results(fill in as needed): | 请填写测试文件路径并提供测试结果截图或文件(按需填写):
Please list the names of the docs that were added or modified in this PR (fill in as needed): | 请列出本次PR新增或修改的文档名称(按需填写):