接口的使用
io.agentscope.core.session.Session
使用Session的程序包
程序包
说明
-
io.agentscope.core中Session的使用
参数类型为Session的io.agentscope.core中的方法修饰符和类型方法说明voidReActAgent.loadFrom(Session session, SessionKey sessionKey) booleanReActAgent.loadIfExists(Session session, SessionKey sessionKey) Load agent state from the session using the new API.voidReActAgent.saveTo(Session session, SessionKey sessionKey) Save agent state to the session using the new API. -
io.agentscope.core.memory中Session的使用
参数类型为Session的io.agentscope.core.memory中的方法修饰符和类型方法说明voidInMemoryMemory.loadFrom(Session session, SessionKey sessionKey) Load memory state from the session.voidInMemoryMemory.saveTo(Session session, SessionKey sessionKey) Save memory state to the session. -
io.agentscope.core.plan中Session的使用
参数类型为Session的io.agentscope.core.plan中的方法修饰符和类型方法说明voidPlanNotebook.loadFrom(Session session, SessionKey sessionKey) Load PlanNotebook state from the session.voidPlanNotebook.saveTo(Session session, SessionKey sessionKey) Save PlanNotebook state to the session. -
io.agentscope.core.session中Session的使用
修饰符和类型类说明classIn-memory implementation of the Session interface.classJSON file-based session implementation.参数类型为Session的io.agentscope.core.session中的方法 -
io.agentscope.core.shutdown中Session的使用
参数类型为Session的io.agentscope.core.shutdown中的方法修饰符和类型方法说明voidGracefulShutdownManager.bindSession(Agent agent, Session session, SessionKey sessionKey) 参数类型为Session的io.agentscope.core.shutdown中的构造器限定符构造器说明ShutdownSessionBinding(Session session, SessionKey sessionKey) 创建ShutdownSessionBinding记录类的实例。 -
io.agentscope.core.state中Session的使用
参数类型为Session的io.agentscope.core.state中的方法修饰符和类型方法说明default voidStateModule.loadFrom(Session session, SessionKey sessionKey) Load state from the session.default voidLoad state from the session using a string session ID.default booleanStateModule.loadIfExists(Session session, SessionKey sessionKey) Load state from the session if it exists.default booleanStateModule.loadIfExists(Session session, String sessionId) Load state from the session if it exists using a string session ID.default voidStateModule.saveTo(Session session, SessionKey sessionKey) Save state to the session.default voidSave state to the session using a string session ID. -
io.agentscope.core.tool.subagent中Session的使用
参数类型为Session的io.agentscope.core.tool.subagent中的方法修饰符和类型方法说明Sets the session for conversation state management.