包package
io.agentscope.builder.web.managedio.agentscope.builder.web.managed
package io.agentscope.builder.web.managed
io.agentscope.builder.web.managed 属于运行时与部署,服务化、调度、控制面与 Web 应用。 该包共收录 46 个公开类型。
io.agentscope.builder.web.managed belongs to the Runtime & deployment layer and contains 46 public types.
接口Interfaces
| 类型Type | 种类Kind | 说明Description |
|---|---|---|
MemoryDocumentStore | 接口interface | 定义记忆文档存储契约的接口。 Live document access, scoped to one authorized session mount. |
类Classes
| 类型Type | 种类Kind | 说明Description |
|---|---|---|
AgentOverrideMerger | 类class | 智能体 Override Merger,承载智能体的部署、调度与服务化运行。 Shared merge helper for session-scoped agent overrides. |
AgentRunRegistry | 类class | 智能体运行注册表,承载智能体的部署、调度与服务化运行。 Local execution ownership. |
ChannelExternalKeys | 类class | 渠道外部密钥,承载智能体的部署、调度与服务化运行。 Builds stable `externalKey` values for managed-session find-or-create, aligned with
channel `dmScope`:
- MAIN DMs → `{channelId}|main`
- PER_PEER DMs / groups → `{channelId}|{peerKind}|{peerId}` from the outbound address
- Groups always use the group peer id even under MAIN (so group and DM never share a slot) |
ChannelWorkBridge | 类class | 渠道 Work Bridge,承载智能体的部署、调度与服务化运行。 Authenticated, durable work intake. |
CronDeploymentScheduler | 类class | Cron 部署调度器,承载智能体的部署、调度与服务化运行。 Scheduler-plane cron loop: every minute, finds due cron deployments, acquires a shared fire
lease, and asks the control plane to fire (create session + kick data-plane turn). |
DataEnvironmentService | 类class | 数据环境服务,承载智能体的部署、调度与服务化运行。 Data-plane read access to environment templates. |
DataSessionService | 类class | 数据会话服务,承载智能体的部署、调度与服务化运行。 Data-plane session service: status transitions, override merges and turn execution for sessions
that were created (and version-pinned) by the control plane. |
EnvironmentSpecFactory | 类class | 环境规格工厂,承载智能体的部署、调度与服务化运行。 Maps Managed Agents `EnvironmentDto` onto harness filesystem / sandbox specs. |
EnvironmentTypes | 类class | 环境类型,承载智能体的部署、调度与服务化运行。 Environment template type constants, shared across planes. |
EnvironmentWorkQueue | 类class | 环境 Work 队列,承载智能体的部署、调度与服务化运行。 Hands work-queue facade. |
ExternalSandboxRegistry | 类class | 外部沙箱注册表,承载智能体的部署、调度与服务化运行。 Live `sessionId -> Sandbox` handles registered by an Environment Worker (a remote
worker calling the worker REST API). |
HandsLeaseService | 类class | Hands Lease 服务,承载智能体的部署、调度与服务化运行。 Brokers hands work-queue signaling for `self_hosted` managed sessions. |
ManagedMemoryTools | 类class | 托管记忆工具,封装可被智能体调用的能力。 Direct CP memory operations also usable when filesystem tools execute on an external Worker. |
ManagedSessionChannelBridge | 类class | 托管会话渠道 Bridge,承载智能体的部署、调度与服务化运行。 Bridges inbound IM channel turns (DingTalk, Feishu, WeCom, GitHub, GitLab, ...) into the
managed-session model across plane boundaries:
- `POST /api/internal/sessions/find-or-create` on the **control plane** resolves
(or creates and version-pins) the session for the channel conversation;
- `POST /api/sessions/{id}/events` on the **data plane** posts the user message,
which schedules the harness turn asynchronously;
- `GET /api/sessions/{id}/events?after=seq` on the **data plane** is polled until
the turn reaches a terminal status, and the last `agent.message` text is returned
as the channel reply. |
MemoryMountService | 类class | 记忆 Mount 服务,承载智能体的部署、调度与服务化运行。 Resolves session-bound memory stores into `MemoryStoreFilesystem` routes mounted under
`memory-stores/{storeName}/` in the harness filesystem (see `MemoryStoreFilesystem#routePrefix` and `EnvironmentSpecFactory#applyMemoryStoreRoutes`). |
MemoryStoreFilesystem | 类class | 记忆存储文件系统,承载智能体的部署、调度与服务化运行。 `AbstractFilesystem` view over a single `MemoryStoreService` store, mounted under
`memory-stores/{storeName}/` via `io.agentscope.harness.agent.HarnessAgent.Builder#filesystemRoute`. |
SessionEventMapper | 类class | 会话事件 Mapper,承载智能体的部署、调度与服务化运行。 Maps harness `AgentEvent`s onto persisted session event types / payloads and stream-only
preview frames. |
SessionEventPreviewBus | 类class | 会话事件预览总线,承载智能体的部署、调度与服务化运行。 Process-local stream-only preview bus for `event_start` / `event_delta`. |
SessionEventTypes | 类class | 会话事件类型,承载智能体的部署、调度与服务化运行。 Canonical session event type names (persisted + stream-only). |
SessionResourceMountService | 类class | 会话资源 Mount 服务,承载智能体的部署、调度与服务化运行。 Mounts session-level `resources[]` entries (see `
ManagedSessionService.CreateSessionRequest#resources`) into a managed session's workspace at
agent-build time. |
SessionStatuses | 类class | 会话 Statuses,承载智能体的部署、调度与服务化运行。 Shared session status vocabulary. |
SessionTurnRunner | 类class | 会话轮次运行器,承载智能体的部署、调度与服务化运行。 Executes a managed session turn against the harness agent and records session events. |
VaultCredentialResolver | 类class | Vault 凭证解析器,承载智能体的部署、调度与服务化运行。 Resolves vault credentials into MCP `ToolsConfig` env substitutions so session vault
mounts actually reach MCP server processes. |
WorkspaceSandbox | 类class | 工作区沙箱,承载智能体的部署、调度与服务化运行。 Docker-less `Sandbox` backed by a plain host directory, registered by an Environment
Worker (via the worker REST API) as the
Priority-1 `externalSandbox` for a `self_hosted` managed session. |
记录Records
| 类型Type | 种类Kind | 说明Description |
|---|---|---|
AgentVersionSnapshot | 记录record | 承载智能体版本快照数据的记录类型。 Immutable snapshot of versioned agent configuration fields persisted in `io.agentscope.builder.web.persistence.jpa.AgentVersionEntity`. |
DeploymentDto | 记录record | 承载部署 Dto数据的记录类型。 API representation of a deployment: agent + version + environment + trigger. |
EnvironmentDto | 记录record | 承载环境 Dto数据的记录类型。 API representation of an execution environment template. |
ManagedSessionDto | 记录record | 承载托管会话 Dto数据的记录类型。 API representation of a managed agent session. |
ManagedSessionIdentity | 记录record | 承载托管会话身份数据的记录类型。 Root Session identity retained when a subagent uses its own conversation session key. |
ManagedTurnContext | 记录record | 承载托管轮次上下文数据的记录类型。 Immutable managed Attempt and continuation lease captured at physical-turn admission. |
MemoryDto | 记录record | 承载记忆 Dto数据的记录类型。 API representation of a path-addressed memory document. |
MemoryStoreDto | 记录record | 承载记忆存储 Dto数据的记录类型。 API representation of a cross-session memory store. |
MemoryVersionDto | 记录record | 承载记忆版本 Dto数据的记录类型。 API representation of an immutable memory document version. |
ResourceShareDto | 记录record | 承载资源 Share Dto数据的记录类型。 API view of a `io.agentscope.builder.web.persistence.jpa.ResourceShareEntity` grant. |
SessionAgentBuildSpec | 记录record | 承载会话智能体构建规格数据的记录类型。 Runtime build parameters for a managed-session `io.agentscope.harness.agent.HarnessAgent`. |
SessionEventDto | 记录record | 承载会话事件 Dto数据的记录类型。 API representation of a single append-only session event. |
VaultCredentialDto | 记录record | 承载 Vault 凭证 Dto数据的记录类型。 API representation of a vault credential entry (no plaintext). |
VaultDto | 记录record | 承载 Vault Dto数据的记录类型。 API representation of a credential vault (no secrets). |