State
public interface State
源码Source
io/agentscope/core/state/State.java:30定义状态契约的接口。位于 io.agentscope.core.state 包。
Marker interface for persistable state objects.
Classes implementing this interface can be serialized and stored by io.agentscope.core.state.AgentStateStore implementations. The recommended approach is to use Java
Records for simple state objects.
Existing domain objects (like io.agentscope.core.message.Msg) can implement this
interface directly to avoid conversion overhead.