CompositeDistributedStore
record CompositeDistributedStore( AgentStateStore stateStore, BaseStore store, SandboxSnapshotSpec snapshotSpec, SandboxExecutionGuard executionGuard, MessageBus bus, AsyncToolRegistry toolRegistry, TaskRepository tasks, SessionTurnGate turnGate, TeamClient teams) implements DistributedStore
io/agentscope/harness/agent/DistributedStore.java:328–384承载 Composite 分布式存储数据的记录类型。位于 io.agentscope.harness.agent 包,实现 DistributedStore。核心成员包括 stateStore、store、snapshotSpec、executionGuard、bus、toolRegistry。
A distributed store composed from individually specified components.
记录组件摘要Record Component Summary
| 组件Component | 类型Type | 说明Description |
|---|---|---|
stateStore | AgentStateStore | 执行状态存储相关操作。 Performs the state store operation. |
store | BaseStore | 执行存储相关操作。 Performs the store operation. |
snapshotSpec | SandboxSnapshotSpec | 执行快照规格相关操作。 Performs the snapshot spec operation. |
executionGuard | SandboxExecutionGuard | 执行执行守卫相关操作。 Performs the execution guard operation. |
bus | MessageBus | 执行总线相关操作。 Performs the bus operation. |
toolRegistry | AsyncToolRegistry | 执行工具注册表相关操作。 Performs the tool registry operation. |
tasks | TaskRepository | 执行任务相关操作。 Performs the tasks operation. |
turnGate | SessionTurnGate | 执行 `turnGate` 方法。 Performs the turn gate operation. |
teams | TeamClient | 执行 `teams` 方法。 Performs the teams operation. |
方法摘要Method Summary
| 方法Method | 说明Description |
|---|---|
public AgentStateStore agentStateStore() | 返回智能体状态存储。 Returns the agent state store. |
public BaseStore baseStore() | 返回基类存储。 Returns the base store. |
public SandboxSnapshotSpec sandboxSnapshotSpec() | 返回沙箱快照规格。 Returns the sandbox snapshot spec. |
public SandboxExecutionGuard sandboxExecutionGuard() | 返回沙箱执行守卫。 Returns the sandbox execution guard. |
public MessageBus messageBus() | 返回消息总线。 Returns the message bus. |
public AsyncToolRegistry asyncToolRegistry() | 返回异步工具注册表。 Returns the async tool registry. |
public TaskRepository taskRepository() | 返回任务仓库。 Returns the task repository. |
public SessionTurnGate sessionTurnGate() | 返回 `sessionTurnGate` 结果。 Returns the session turn gate. |
public TeamClient teamClient() | 返回团队客户端。 Returns the team client. |
记录组件详情Record Component Detail
stateStore
AgentStateStore stateStore执行状态存储相关操作。
Performs the state store operation.
io/agentscope/harness/agent/DistributedStore.java:328–384store
BaseStore store执行存储相关操作。
Performs the store operation.
io/agentscope/harness/agent/DistributedStore.java:328–384snapshotSpec
SandboxSnapshotSpec snapshotSpec执行快照规格相关操作。
Performs the snapshot spec operation.
io/agentscope/harness/agent/DistributedStore.java:328–384executionGuard
SandboxExecutionGuard executionGuard执行执行守卫相关操作。
Performs the execution guard operation.
io/agentscope/harness/agent/DistributedStore.java:328–384bus
MessageBus bus执行总线相关操作。
Performs the bus operation.
io/agentscope/harness/agent/DistributedStore.java:328–384toolRegistry
AsyncToolRegistry toolRegistry执行工具注册表相关操作。
Performs the tool registry operation.
io/agentscope/harness/agent/DistributedStore.java:328–384tasks
TaskRepository tasks执行任务相关操作。
Performs the tasks operation.
io/agentscope/harness/agent/DistributedStore.java:328–384turnGate
SessionTurnGate turnGate执行 turnGate 方法。
Performs the turn gate operation.
io/agentscope/harness/agent/DistributedStore.java:328–384teams
TeamClient teams执行 teams 方法。
Performs the teams operation.
io/agentscope/harness/agent/DistributedStore.java:328–384方法详情Method Detail
agentStateStore
public AgentStateStore agentStateStore()
返回智能体状态存储。
Returns the agent state store.
AgentStateStoreio/agentscope/harness/agent/DistributedStore.java:340–343baseStore
public BaseStore baseStore()
返回基类存储。
Returns the base store.
BaseStoreio/agentscope/harness/agent/DistributedStore.java:345–348sandboxSnapshotSpec
public SandboxSnapshotSpec sandboxSnapshotSpec()
返回沙箱快照规格。
Returns the sandbox snapshot spec.
SandboxSnapshotSpecio/agentscope/harness/agent/DistributedStore.java:350–353sandboxExecutionGuard
public SandboxExecutionGuard sandboxExecutionGuard()
返回沙箱执行守卫。
Returns the sandbox execution guard.
SandboxExecutionGuardio/agentscope/harness/agent/DistributedStore.java:355–358messageBus
public MessageBus messageBus()
返回消息总线。
Returns the message bus.
MessageBusio/agentscope/harness/agent/DistributedStore.java:360–363asyncToolRegistry
public AsyncToolRegistry asyncToolRegistry()
返回异步工具注册表。
Returns the async tool registry.
AsyncToolRegistryio/agentscope/harness/agent/DistributedStore.java:365–368taskRepository
public TaskRepository taskRepository()
返回任务仓库。
Returns the task repository.
TaskRepositoryio/agentscope/harness/agent/DistributedStore.java:370–373sessionTurnGate
public SessionTurnGate sessionTurnGate()
返回 sessionTurnGate 结果。
Returns the session turn gate.
SessionTurnGateio/agentscope/harness/agent/DistributedStore.java:375–378teamClient
public TeamClient teamClient()
返回团队客户端。
Returns the team client.
TeamClientio/agentscope/harness/agent/DistributedStore.java:380–383