接口的使用
io.agentscope.core.state.State
使用State的程序包
-
io.agentscope.core.message中State的使用
修饰符和类型类说明final classAMsgwithMsgRole.ASSISTANTpinned at construction time.final classRepresents audio content in a message.classBase sealed class for all content blocks in messages.final classUnified data block for arbitrary binary media (image / audio / video / file).final classA content block that provides hints to the LLM during reasoning.final classRepresents image content in a message with URL or Base64 source.classRepresents a message in the AgentScope framework.final classAMsgwithMsgRole.SYSTEMpinned at construction time.final classRepresents plain text content in a message.final classRepresents reasoning or thinking content in a message.final classRepresents the result of a tool execution.final classAMsgwithMsgRole.TOOLpinned at construction time.final classRepresents a tool use request within a message.final classAMsgwithMsgRole.USERpinned at construction time.final classRepresents video content in a message. -
io.agentscope.core.state中State的使用
类型参数类型为State的io.agentscope.core.state中的方法修饰符和类型方法说明Get a single state value.Get a list of state values.参数类型为State的io.agentscope.core.state中的方法修饰符和类型方法说明voidSave a single state value (full replacement).voidvoid类型变量类型为State的io.agentscope.core.state中的方法参数修饰符和类型方法说明static StringListHashUtil.computeHash(List<? extends State> values) Compute a hash value for a list of state objects.static booleanListHashUtil.needsFullRewrite(List<? extends State> currentValues, String storedHash, int existingCount) Determine if a full rewrite is needed based on list content and existing count.voidSave a list of state values.voidInMemoryAgentStateStore.save(String userId, String sessionId, String key, List<? extends State> values) voidJsonFileAgentStateStore.save(String userId, String sessionId, String key, List<? extends State> values) -
io.agentscope.core.state.legacy中State的使用
修饰符和类型类说明final recordDeserialization shape for the v1toolkit_activeGroupssession entry.