langchain.memory.combined.CombinedMemory¶
- class langchain.memory.combined.CombinedMemory[source]¶
- 基础: - BaseMemory- 将多个记忆库的数据组合在一起。 - param memories: List[BaseMemory] [Required]¶
- 用于跟踪所有需要访问的记忆。 
 - async aclear() None¶
- 异步清空内存内容。 - 返回类型
- None 
 
 - async aload_memory_variables(inputs: Dict[str, Any]) Dict[str, Any]¶
- 异步返回提供给链文本输入的键值对。 - 参数
- inputs (Dict[str, Any]) – 链的输入。 
- 返回
- 一个键值对字典。 
- 返回类型
- Dict[str, Any] 
 
 - async asave_context(inputs: Dict[str, Any], outputs: Dict[str, str]) None¶
- 异步将此链运行上下文保存到内存中。 - 参数
- inputs (Dict[str, Any]) – 链的输入。 
- outputs (Dict[str, str]) – 链的输出。 
 
- 返回类型
- None 
 
 - load_memory_variables(inputs: Dict[str, Any]) Dict[str, str][source]¶
- 从子内存中加载所有变量。 - 参数
- inputs (Dict[str, Any]) – 
- 返回类型
- Dict[str, str] 
 
 - save_context(inputs: Dict[str, Any], outputs: Dict[str, str]) None[source]¶
- 为每个内存保存此会话的上下文。 - 参数
- inputs (Dict[str, Any]) – 
- outputs (Dict[str, str]) – 
 
- 返回类型
- None 
 
 - property memory_variables: List[str]¶
- 此实例提供的所有内存变量。