包package
io.agentscope.core.memoryio.agentscope.core.memory
package io.agentscope.core.memory
io.agentscope.core.memory 属于状态·记忆·会话,跨调用持久化与多租户隔离。 该包共收录 8 个公开类型。
io.agentscope.core.memory belongs to the State, memory & sessions layer and contains 8 public types.
接口Interfaces
| 类型Type | 种类Kind | 说明Description |
|---|---|---|
LongTermMemory | 接口interface | 定义 Long Term 记忆契约的接口。 Abstract base class for long-term memory implementations. |
Memory | 接口interface | 定义记忆契约的接口。 Interface for memory components that store and manage conversation history. |
类Classes
| 类型Type | 种类Kind | 说明Description |
|---|---|---|
AgentStateMemoryView | 类class | 智能体状态记忆 View,在多次调用之间保存和恢复会话与记忆数据。 Read-only `Memory` adapter that proxies `#getMessages()` to a live
`AgentState#getContext()` resolved at call time. |
InMemoryMemory | 类class | In 记忆记忆,在多次调用之间保存和恢复会话与记忆数据。 In-memory implementation of Memory with state persistence support. |
LongTermMemoryTools | 类class | Long Term 记忆工具,封装可被智能体调用的能力。 Tool adapter that exposes long-term memory operations as agent-callable tools. |
StateBackedMemory | 类class | 状态 Backed 记忆,在多次调用之间保存和恢复会话与记忆数据。 A `Memory` implementation that delegates all reads and writes to
`AgentState#contextMutable()`. |
StaticLongTermMemoryHook | 类class | Static Long Term 记忆钩子,在多次调用之间保存和恢复会话与记忆数据。 Static Long-Term Memory Hook for automatic memory management. |
枚举Enums
| 类型Type | 种类Kind | 说明Description |
|---|---|---|
LongTermMemoryMode | 枚举enum | 定义Long Term 记忆模式相关取值的枚举。 Defines how long-term memory is integrated with agent behavior. |