接口的使用
io.agentscope.core.state.AgentStateStore
使用AgentStateStore的程序包
程序包
说明
-
io.agentscope.core中AgentStateStore的使用
修饰符和类型方法说明ReActAgent.getStateStore()Returns theAgentStateStoreconfigured for state persistence, ornull.参数类型为AgentStateStore的io.agentscope.core中的方法修饰符和类型方法说明ReActAgent.Builder.stateStore(AgentStateStore stateStore) Sets theAgentStateStorebacking automatic AgentState load (at construction) and save (after every successfulcall()and on graceful shutdown). -
io.agentscope.core.memory中AgentStateStore的使用
参数类型为AgentStateStore的io.agentscope.core.memory中的方法修饰符和类型方法说明voidAgentStateMemoryView.loadFrom(AgentStateStore stateStore, String userId, String sessionId) 已过时, 待删除: 此 API 元素将从以后的版本中删除。voidInMemoryMemory.loadFrom(AgentStateStore stateStore, String userId, String sessionId) 已过时, 待删除: 此 API 元素将从以后的版本中删除。Load memory state from the store.voidMemory.loadFrom(AgentStateStore stateStore, String userId, String sessionId) 已过时, 待删除: 此 API 元素将从以后的版本中删除。Load a previously saved message buffer (no-op when none exists).voidStateBackedMemory.loadFrom(AgentStateStore stateStore, String userId, String sessionId) 已过时, 待删除: 此 API 元素将从以后的版本中删除。voidAgentStateMemoryView.saveTo(AgentStateStore stateStore, String userId, String sessionId) 已过时, 待删除: 此 API 元素将从以后的版本中删除。voidInMemoryMemory.saveTo(AgentStateStore stateStore, String userId, String sessionId) 已过时, 待删除: 此 API 元素将从以后的版本中删除。Save memory state to the session.voidMemory.saveTo(AgentStateStore stateStore, String userId, String sessionId) 已过时, 待删除: 此 API 元素将从以后的版本中删除。Save the message buffer under thememory_messagessession key.voidStateBackedMemory.saveTo(AgentStateStore stateStore, String userId, String sessionId) 已过时, 待删除: 此 API 元素将从以后的版本中删除。 -
io.agentscope.core.shutdown中AgentStateStore的使用
修饰符和类型方法说明ShutdownSessionBinding.stateStore()已过时, 待删除: 此 API 元素将从以后的版本中删除。返回stateStore记录组件的值。参数类型为AgentStateStore的io.agentscope.core.shutdown中的构造器限定符构造器说明ShutdownSessionBinding(AgentStateStore stateStore, String userId, String sessionId) 已过时, 待删除: 此 API 元素将从以后的版本中删除。创建ShutdownSessionBinding记录类的实例。 -
io.agentscope.core.state中AgentStateStore的使用
修饰符和类型类说明classIn-memory implementation of theAgentStateStoreinterface.classJSON file-basedAgentStateStoreimplementation.参数类型为AgentStateStore的io.agentscope.core.state中的方法修饰符和类型方法说明static AgentStateLegacyStateLoader.loadFromLegacySession(AgentStateStore stateStore, String userId, String sessionId) Load anAgentStatefrom a v1 session. -
io.agentscope.core.tool.subagent中AgentStateStore的使用
修饰符和类型方法说明SubAgentConfig.Builder.stateStore(AgentStateStore stateStore) Sets the session for conversation state management.