AS AgentScopeAPI 手册 / API Reference
包package io.agentscope.core.memory

io.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.

所属构件Artifacts agentscope-core

接口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.
基于官方固定版本源码静态生成Generated from pinned official sources · Python 2.0.11 · Java 2.0.4
签名与文档为静态抽取;如有疑问请以源码为准。Signatures and docs are extracted statically; verify against the source when in doubt.