接口的使用
io.agentscope.core.memory.LongTermMemory
使用LongTermMemory的程序包
-
io.agentscope.core中LongTermMemory的使用
参数类型为LongTermMemory的io.agentscope.core中的方法修饰符和类型方法说明ReActAgent.Builder.longTermMemory(LongTermMemory longTermMemory) Sets the long-term memory for this agent. -
io.agentscope.core.memory中LongTermMemory的使用
修饰符和类型方法说明StaticLongTermMemoryHook.getLongTermMemory()Gets the long-term memory instance used by this hook.参数类型为LongTermMemory的io.agentscope.core.memory中的构造器限定符构造器说明LongTermMemoryTools(LongTermMemory memory) Creates a new tool adapter for the given long-term memory instance.StaticLongTermMemoryHook(LongTermMemory longTermMemory, Memory memory) Creates a new StaticLongTermMemoryHook with synchronous recording.StaticLongTermMemoryHook(LongTermMemory longTermMemory, Memory memory, boolean asyncRecord) Creates a new StaticLongTermMemoryHook.