AS AgentScopeAPI 手册 / API Reference

CompositeDistributedStore

record CompositeDistributedStore( AgentStateStore stateStore, BaseStore store, SandboxSnapshotSpec snapshotSpec, SandboxExecutionGuard executionGuard, MessageBus bus, AsyncToolRegistry toolRegistry, TaskRepository tasks, SessionTurnGate turnGate, TeamClient teams) implements DistributedStore
源码Source 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
stateStoreAgentStateStore
执行状态存储相关操作。
Performs the state store operation.
storeBaseStore
执行存储相关操作。
Performs the store operation.
snapshotSpecSandboxSnapshotSpec
执行快照规格相关操作。
Performs the snapshot spec operation.
executionGuardSandboxExecutionGuard
执行执行守卫相关操作。
Performs the execution guard operation.
busMessageBus
执行总线相关操作。
Performs the bus operation.
toolRegistryAsyncToolRegistry
执行工具注册表相关操作。
Performs the tool registry operation.
tasksTaskRepository
执行任务相关操作。
Performs the tasks operation.
turnGateSessionTurnGate
执行 `turnGate` 方法。
Performs the turn gate operation.
teamsTeamClient
执行 `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.

源码Source io/agentscope/harness/agent/DistributedStore.java:328–384

store

BaseStore store

执行存储相关操作。

Performs the store operation.

源码Source io/agentscope/harness/agent/DistributedStore.java:328–384

snapshotSpec

SandboxSnapshotSpec snapshotSpec

执行快照规格相关操作。

Performs the snapshot spec operation.

源码Source io/agentscope/harness/agent/DistributedStore.java:328–384

executionGuard

SandboxExecutionGuard executionGuard

执行执行守卫相关操作。

Performs the execution guard operation.

源码Source io/agentscope/harness/agent/DistributedStore.java:328–384

bus

MessageBus bus

执行总线相关操作。

Performs the bus operation.

源码Source io/agentscope/harness/agent/DistributedStore.java:328–384

toolRegistry

AsyncToolRegistry toolRegistry

执行工具注册表相关操作。

Performs the tool registry operation.

源码Source io/agentscope/harness/agent/DistributedStore.java:328–384

tasks

TaskRepository tasks

执行任务相关操作。

Performs the tasks operation.

源码Source io/agentscope/harness/agent/DistributedStore.java:328–384

turnGate

SessionTurnGate turnGate

执行 turnGate 方法。

Performs the turn gate operation.

源码Source io/agentscope/harness/agent/DistributedStore.java:328–384

teams

TeamClient teams

执行 teams 方法。

Performs the teams operation.

源码Source io/agentscope/harness/agent/DistributedStore.java:328–384

方法详情Method Detail

agentStateStore

public AgentStateStore agentStateStore()

返回智能体状态存储。

Returns the agent state store.

返回Returns AgentStateStore
返回AgentStateStore。Returns agent state store.
源码Source io/agentscope/harness/agent/DistributedStore.java:340–343

baseStore

public BaseStore baseStore()

返回基类存储。

Returns the base store.

返回Returns BaseStore
返回BaseStore。Returns base store.
源码Source io/agentscope/harness/agent/DistributedStore.java:345–348

sandboxSnapshotSpec

public SandboxSnapshotSpec sandboxSnapshotSpec()

返回沙箱快照规格。

Returns the sandbox snapshot spec.

返回Returns SandboxSnapshotSpec
返回SandboxSnapshotSpec。Returns sandbox snapshot spec.
源码Source io/agentscope/harness/agent/DistributedStore.java:350–353

sandboxExecutionGuard

public SandboxExecutionGuard sandboxExecutionGuard()

返回沙箱执行守卫。

Returns the sandbox execution guard.

返回Returns SandboxExecutionGuard
返回SandboxExecutionGuard。Returns sandbox execution guard.
源码Source io/agentscope/harness/agent/DistributedStore.java:355–358

messageBus

public MessageBus messageBus()

返回消息总线。

Returns the message bus.

返回Returns MessageBus
返回MessageBus。Returns message bus.
源码Source io/agentscope/harness/agent/DistributedStore.java:360–363

asyncToolRegistry

public AsyncToolRegistry asyncToolRegistry()

返回异步工具注册表。

Returns the async tool registry.

返回Returns AsyncToolRegistry
返回AsyncToolRegistry。Returns async tool registry.
源码Source io/agentscope/harness/agent/DistributedStore.java:365–368

taskRepository

public TaskRepository taskRepository()

返回任务仓库。

Returns the task repository.

返回Returns TaskRepository
返回TaskRepository。Returns task repository.
源码Source io/agentscope/harness/agent/DistributedStore.java:370–373

sessionTurnGate

public SessionTurnGate sessionTurnGate()

返回 sessionTurnGate 结果。

Returns the session turn gate.

返回Returns SessionTurnGate
返回SessionTurnGate。Returns session turn gate.
源码Source io/agentscope/harness/agent/DistributedStore.java:375–378

teamClient

public TeamClient teamClient()

返回团队客户端。

Returns the team client.

返回Returns TeamClient
返回TeamClient。Returns team client.
源码Source io/agentscope/harness/agent/DistributedStore.java:380–383

继承成员Inherited Members

继承自Methods inherited from DistributedStore
基于官方固定版本源码静态生成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.