Class SessionSandboxStateStore
java.lang.Object
io.agentscope.harness.agent.sandbox.SessionSandboxStateStore
Sandbox state store backed by the generic AgentScope
AgentStateStore abstraction.
This store keeps sandbox lifecycle state in the same state backend as ReActAgent runtime
state. As a result, providing a distributed AgentStateStore implementation (for example Redis)
automatically enables distributed sandbox resume state.
-
Constructor Summary
ConstructorsConstructorDescriptionSessionSandboxStateStore(io.agentscope.core.state.AgentStateStore stateStore, String agentId) -
Method Summary
Modifier and TypeMethodDescriptionvoidload(SandboxIsolationKey key) voidsave(SandboxIsolationKey key, String json)
-
Constructor Details
-
SessionSandboxStateStore
public SessionSandboxStateStore(io.agentscope.core.state.AgentStateStore stateStore, String agentId)
-
-
Method Details
-
load
- Throws:
IOException
-
save
- Throws:
IOException
-
delete
- Throws:
IOException
-