AS AgentScopeAPI 手册 / API Reference

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.

基于官方固定版本源码静态生成Generated from pinned official sources · Python 2.0.11 · Java 2.0.4
签名与文档为静态抽取;如有疑问请以源码为准。Signatures and docs are extracted statically; verify against the source when in doubt.