Skip to main content
本示例展示了如何单独配置记忆管理器(Memory Manager)和摘要器(Summarizer)模型。 在此示例中,我们将OpenRouter和LLama 3.3-70b-instruct用作记忆管理器,将Claude 3.5 Sonnet用作摘要器,同时将Gemini用作Agent。 我们还为记忆管理器和摘要器设置了自定义系统提示。

代码

cookbook/agent_concepts/memory/10_custom_memory.py

用法

1

创建虚拟环境

打开 Terminal 并创建一个 python 虚拟环境。
2

安装库

3

运行示例