包package 2.x
service-common
AgentScope Java - Service Common · 2.0.4
Shared contracts: JPA entities/repositories, DTOs, error model, coordination store, auth filters, config entries
| groupIdGroupId | io.agentscope |
|---|---|
| 版本Version | 2.0.4 |
| 版本线Line | 2.x |
| 分类Category | service |
| 包Packages | 13 |
| 类型Types | 109 top-level / 140 total |
包Packages
类型Types
| 类型Type | 种类Kind | 包Package | 说明Description |
|---|---|---|---|
AgentConfigEntry | 类class | io.agentscope.builder.runtime.config | 智能体配置条目,承载智能体的部署、调度与服务化运行。 Per-agent section in `agentscope.json` under `agents.<agentId>`. |
AgentscopeConfig | 类class | io.agentscope.builder.runtime.config | 用于`${cwd}/.agentscope/agentscope.json`的根文档。 Root document for `${cwd}/.agentscope/agentscope.json`. |
BindingConfigEntry | 类class | io.agentscope.builder.runtime.config | 绑定配置条目,承载智能体的部署、调度与服务化运行。 JSON-serializable counterpart of `ChannelBinding`. |
ChannelConfigEntry | 类class | io.agentscope.builder.runtime.config | 渠道配置条目,承载智能体的部署、调度与服务化运行。 Per-channel section in `agentscope.json` under `channels.<channelId>`. |
ChannelTypeRegistry | 类class | io.agentscope.builder.runtime.config | 渠道类型注册表,承载智能体的部署、调度与服务化运行。 Registry of `ChannelFactory` implementations keyed by `type`. |
MarketplaceConfigEntry | 类class | io.agentscope.builder.runtime.config | 市场配置条目,承载智能体的部署、调度与服务化运行。 Marketplace configuration carrier — a `type` discriminator (`"git"` / `
"nacos"`) plus an open bag of type-specific properties. |
SessionLifecycleConfig | 类class | io.agentscope.builder.runtime.config | 会话生命周期配置,保存相关配置项。 Optional `session` block in `agentscope.json` controlling session lifecycle and
maintenance. |
SkillRepositoryConfigEntry | 类class | io.agentscope.builder.runtime.config | 技能仓库配置条目,承载智能体的部署、调度与服务化运行。 Declarative skill repository settings for `agentscope.json` (and similar) configs. |
SkillRepositorySupport | 类class | io.agentscope.builder.runtime.config | 构建`AgentSkillRepository`来自`SkillRepositoryConfigEntry`。 Builds an `AgentSkillRepository` from `SkillRepositoryConfigEntry`. |
ApiErrorDetail | 记录record | io.agentscope.builder.web.api.error | 承载 API 错误详情数据的记录类型。 Shared typed error object for HTTP responses and `session.error` payloads. |
ApiErrorResponse | 记录record | io.agentscope.builder.web.api.error | 承载 API 错误响应数据的记录类型。 Top-level HTTP error envelope: `{ "type": "error", "error": { ... } }`. |
ApiErrorType | 枚举enum | io.agentscope.builder.web.api.error | 定义API 错误类型的枚举。 Typed HTTP / session.error categories shared across the Managed Agents API surface. |
ApiException | 类class | io.agentscope.builder.web.api.error | API 异常,表示执行过程中的错误。 Typed API failure with stable machine `code` for HTTP and session.error payloads. |
RestExceptionHandler | 类class | io.agentscope.builder.web.api.error | REST 异常处理器,承载智能体的部署、调度与服务化运行。 Maps exceptions on `/api/**` to the shared typed error envelope. |
EnvironmentApiKeyVerifier | 接口interface | io.agentscope.builder.web.auth | 定义环境 API 键校验器契约的接口。 Verifies an Environment Worker API key against control-plane state. |
EnvironmentKeyAuthFilter | 类class | io.agentscope.builder.web.auth | 环境键认证过滤器,承载智能体的部署、调度与服务化运行。 Authenticates Environment Worker requests via `X-Builder-Environment-Key` before the JWT
filter chain. |
InternalTokenAuthFilter | 类class | io.agentscope.builder.web.auth | 内部令牌认证过滤器,承载智能体的部署、调度与服务化运行。 Authenticates cross-plane internal calls via a shared static token carried in `
X-Builder-Internal-Token`. |
InternalTokenStartupValidator | 类class | io.agentscope.builder.web.auth | 内部令牌启动校验器,承载智能体的部署、调度与服务化运行。 Fails fast when the shared cross-plane internal token is missing or uses a known development
default outside the `dev` profile. |
JwtService | 类class | io.agentscope.builder.web.auth | JWT 服务,承载智能体的部署、调度与服务化运行。 HS256 JWT service for the claw web application. |
UserStore | 接口interface | io.agentscope.builder.web.auth | 定义用户存储契约的接口。 Abstraction over the user registry. |
AgentDefinition | 记录record | io.agentscope.builder.web.catalog | 承载智能体定义数据的记录类型。 API representation of an agent definition visible to the current user. |
BaseStoreDefinitionStore | 类class | io.agentscope.builder.web.catalog | 基类存储定义存储,负责持久化与读取数据。 `DefinitionStore` backed by the shared `BaseStore` under namespace `
definitions / {ownerId} / {agentId}`. |
DefinitionStore | 接口interface | io.agentscope.builder.web.catalog | 定义定义存储契约的接口。 Control-plane persistence for agent *definition* files (skills, optional workspace
assets, staged resources), independent of the session Hands `AbstractFilesystem`. |
DefinitionStoreSkillRepository | 类class | io.agentscope.builder.web.catalog | 定义存储技能仓库,负责持久化与读取数据。 Loads workspace skills from the control-plane `DefinitionStore` (paths under `
skills/{name}/…`), independent of the session Hands filesystem. |
UserAgentDefinitionStore | 接口interface | io.agentscope.builder.web.catalog | 定义用户智能体定义存储契约的接口。 Abstraction over the per-user custom agent definition registry. |
AgentSpecCodec | 类class | io.agentscope.builder.web.catalog.spec | 智能体规格编解码器,承载智能体的部署、调度与服务化运行。 Converts Agent body tool/MCP/skills structures to harness `ToolsConfig` and policy maps. |
AgentSpecTypes | 类class | io.agentscope.builder.web.catalog.spec | 智能体规格类型,承载智能体的部署、调度与服务化运行。 Wire types for the Managed Agents Agent body (tools / MCP / skills / multiagent), aligned with
Claude Managed Agents semantics. |
BuilderE2bProperties | 类class | io.agentscope.builder.web.config | 构建器 E 2 b 属性,承载智能体的部署、调度与服务化运行。 Global defaults for Managed Environment `type=sandbox` (E2B cloud). |
BuilderInstanceId | 类class | io.agentscope.builder.web.coord | 构建器实例标识,承载智能体的部署、调度与服务化运行。 Stable-enough identity for this Brain / worker JVM, used as lease owner ids. |
CoordinationStore | 接口interface | io.agentscope.builder.web.coord | 定义 Coordination 存储契约的接口。 Shared coordination plane for multi-replica Brain / Hands workers. |
JdbcCoordinationStore | 类class | io.agentscope.builder.web.coord | JDBC Coordination 存储,负责持久化与读取数据。 JDBC-backed `CoordinationStore` using the builder catalog DataSource / JPA schema. |
AgentOverrideMerger | 类class | io.agentscope.builder.web.managed | 智能体 Override Merger,承载智能体的部署、调度与服务化运行。 Shared merge helper for session-scoped agent overrides. |
AgentVersionSnapshot | 记录record | io.agentscope.builder.web.managed | 承载智能体版本快照数据的记录类型。 Immutable snapshot of versioned agent configuration fields persisted in `io.agentscope.builder.web.persistence.jpa.AgentVersionEntity`. |
DeploymentDto | 记录record | io.agentscope.builder.web.managed | 承载部署 Dto数据的记录类型。 API representation of a deployment: agent + version + environment + trigger. |
EnvironmentDto | 记录record | io.agentscope.builder.web.managed | 承载环境 Dto数据的记录类型。 API representation of an execution environment template. |
EnvironmentTypes | 类class | io.agentscope.builder.web.managed | 环境类型,承载智能体的部署、调度与服务化运行。 Environment template type constants, shared across planes. |
ManagedSessionDto | 记录record | io.agentscope.builder.web.managed | 承载托管会话 Dto数据的记录类型。 API representation of a managed agent session. |
MemoryDto | 记录record | io.agentscope.builder.web.managed | 承载记忆 Dto数据的记录类型。 API representation of a path-addressed memory document. |
MemoryStoreDto | 记录record | io.agentscope.builder.web.managed | 承载记忆存储 Dto数据的记录类型。 API representation of a cross-session memory store. |
MemoryVersionDto | 记录record | io.agentscope.builder.web.managed | 承载记忆版本 Dto数据的记录类型。 API representation of an immutable memory document version. |
ResourceShareDto | 记录record | io.agentscope.builder.web.managed | 承载资源 Share Dto数据的记录类型。 API view of a `io.agentscope.builder.web.persistence.jpa.ResourceShareEntity` grant. |
SessionAgentBuildSpec | 记录record | io.agentscope.builder.web.managed | 承载会话智能体构建规格数据的记录类型。 Runtime build parameters for a managed-session `io.agentscope.harness.agent.HarnessAgent`. |
SessionEventDto | 记录record | io.agentscope.builder.web.managed | 承载会话事件 Dto数据的记录类型。 API representation of a single append-only session event. |
SessionEventTypes | 类class | io.agentscope.builder.web.managed | 会话事件类型,承载智能体的部署、调度与服务化运行。 Canonical session event type names (persisted + stream-only). |
SessionStatuses | 类class | io.agentscope.builder.web.managed | 会话 Statuses,承载智能体的部署、调度与服务化运行。 Shared session status vocabulary. |
VaultCredentialDto | 记录record | io.agentscope.builder.web.managed | 承载 Vault 凭证 Dto数据的记录类型。 API representation of a vault credential entry (no plaintext). |
VaultDto | 记录record | io.agentscope.builder.web.managed | 承载 Vault Dto数据的记录类型。 API representation of a credential vault (no secrets). |
SessionInputStager | 类class | io.agentscope.builder.web.managed.selfhosted | 会话输入 Stager,承载智能体的部署、调度与服务化运行。 Stages session metadata / resource file references into a worker workspace. |
AgentVersionService | 类class | io.agentscope.builder.web.managed.service | 智能体版本服务,承载智能体的部署、调度与服务化运行。 Manages immutable version snapshots for user-custom agents. |
DeletedSessionRegistry | 类class | io.agentscope.builder.web.managed.service | 已删除会话注册表,承载智能体的部署、调度与服务化运行。 Tracks sessions that were deleted while work was still in flight. |
HandsMetrics | 类class | io.agentscope.builder.web.managed.service | Hands 指标,承载智能体的部署、调度与服务化运行。 Per-session hands-lease counters: acquires, releases, and acquire timeouts. |
ManagedJsonHelper | 类class | io.agentscope.builder.web.managed.service | 托管 JSON Helper,承载智能体的部署、调度与服务化运行。 Shared JSON and identifier helpers for the managed-agents service layer. |
MemoryStoreService | 类class | io.agentscope.builder.web.managed.service | 记忆存储服务,承载智能体的部署、调度与服务化运行。 CRUD for memory stores and versioned memory documents. |
SessionEventLog | 类class | io.agentscope.builder.web.managed.service | 会话事件日志,承载智能体的部署、调度与服务化运行。 Append-only session event log. |
SessionEventMirror | 接口interface | io.agentscope.builder.web.managed.service | 定义会话事件镜像契约的接口。 Best-effort observer used to project persisted managed events to another read model. |
SessionEventNotifier | 类class | io.agentscope.builder.web.managed.service | 会话事件 Notifier,承载智能体的部署、调度与服务化运行。 Wakes session-event readers without continuously polling the event table. |
VaultCrypto | 类class | io.agentscope.builder.web.managed.service | Vault Crypto,承载智能体的部署、调度与服务化运行。 AES-GCM encryption for vault credential payloads. |
VaultService | 类class | io.agentscope.builder.web.managed.service | Vault 服务,承载智能体的部署、调度与服务化运行。 CRUD for credential vaults with encrypted secret storage. |
AgentEntity | 类class | io.agentscope.builder.web.persistence.jpa | 智能体 Entity,在多次调用之间保存和恢复会话与记忆数据。 Persistent representation of a user-custom agent definition. |
AgentEntityRepository | 接口interface | io.agentscope.builder.web.persistence.jpa | 定义智能体 Entity 仓库契约的接口。 Spring Data repository for `AgentEntity`. |
AgentShareEntity | 类class | io.agentscope.builder.web.persistence.jpa | 智能体 Share Entity,在多次调用之间保存和恢复会话与记忆数据。 Persistent representation of one `io.agentscope.builder.web.share.AgentShareGrant`. |
AgentStateEntity | 类class | io.agentscope.builder.web.persistence.jpa | 智能体状态 Entity,在多次调用之间保存和恢复会话与记忆数据。 One row of persisted `io.agentscope.core.state.AgentStateStore` data. |
AgentStateEntityRepository | 接口interface | io.agentscope.builder.web.persistence.jpa | 定义智能体状态 Entity 仓库契约的接口。 Spring Data repository for `AgentStateEntity`. |
AgentVersionEntity | 类class | io.agentscope.builder.web.persistence.jpa | 智能体版本 Entity,在多次调用之间保存和恢复会话与记忆数据。 Immutable configuration snapshot for one version of a user-custom agent. |
AgentVersionEntityRepository | 接口interface | io.agentscope.builder.web.persistence.jpa | 定义智能体版本 Entity 仓库契约的接口。 Spring Data repository for `AgentVersionEntity`. |
CoordHitlTicketEntity | 类class | io.agentscope.builder.web.persistence.jpa | Coord Hitl Ticket Entity,在多次调用之间保存和恢复会话与记忆数据。 Shared HITL tool-confirmation tickets. |
CoordHitlTicketEntityRepository | 接口interface | io.agentscope.builder.web.persistence.jpa | 定义 Coord Hitl Ticket Entity 仓库契约的接口。 An interface in io.agentscope.builder.web.persistence.jpa that defines the contract for components that persists and restores session and memory data across calls. |
CoordLeaseEntity | 类class | io.agentscope.builder.web.persistence.jpa | Coord Lease Entity,在多次调用之间保存和恢复会话与记忆数据。 Shared lease rows: turn ownership and deployment fire windows. |
CoordLeaseEntityRepository | 接口interface | io.agentscope.builder.web.persistence.jpa | 定义 Coord Lease Entity 仓库契约的接口。 An interface in io.agentscope.builder.web.persistence.jpa that defines the contract for components that persists and restores session and memory data across calls. |
CoordWorkItemEntity | 类class | io.agentscope.builder.web.persistence.jpa | Coord Work 条目 Entity,在多次调用之间保存和恢复会话与记忆数据。 Durable hands work-queue rows + sandbox-ready metadata. |
CoordWorkItemEntityRepository | 接口interface | io.agentscope.builder.web.persistence.jpa | 定义 Coord Work 条目 Entity 仓库契约的接口。 An interface in io.agentscope.builder.web.persistence.jpa that defines the contract for components that persists and restores session and memory data across calls. |
CoordWorkerHeartbeatEntity | 类class | io.agentscope.builder.web.persistence.jpa | Coord 工作进程心跳 Entity,在多次调用之间保存和恢复会话与记忆数据。 Last-seen heartbeat for environment workers. |
CoordWorkerHeartbeatEntityRepository | 接口interface | io.agentscope.builder.web.persistence.jpa | 定义 Coord 工作进程心跳 Entity 仓库契约的接口。 An interface in io.agentscope.builder.web.persistence.jpa that defines the contract for components that persists and restores session and memory data across calls. |
DeploymentEntity | 类class | io.agentscope.builder.web.persistence.jpa | 部署 Entity,在多次调用之间保存和恢复会话与记忆数据。 A deployment binds an agent (optionally pinned to a version) and an execution environment to a
trigger — `cron`, `webhook`, or `manual` — so it can be fired automatically
or on demand without a human driving a chat session. |
DeploymentEntityRepository | 接口interface | io.agentscope.builder.web.persistence.jpa | 定义部署 Entity 仓库契约的接口。 Spring Data repository for `DeploymentEntity`. |
EnvironmentEntity | 类class | io.agentscope.builder.web.persistence.jpa | 环境 Entity,在多次调用之间保存和恢复会话与记忆数据。 Execution-environment template (local / sandbox / remote). |
EnvironmentEntityRepository | 接口interface | io.agentscope.builder.web.persistence.jpa | 定义环境 Entity 仓库契约的接口。 Spring Data repository for `EnvironmentEntity`. |
JpaAgentStateStore | 类class | io.agentscope.builder.web.persistence.jpa | JPA 智能体状态存储,负责持久化与读取数据。 Database-backed `AgentStateStore` for agentscope-builder. |
JpaPersistenceConfig | 类class | io.agentscope.builder.web.persistence.jpa | JPA 持久化配置,保存相关配置项。 Wires the JPA-backed `UserStore` and `UserAgentDefinitionStore`. |
JpaUserAgentDefinitionStore | 类class | io.agentscope.builder.web.persistence.jpa | JPA 用户智能体定义存储,负责持久化与读取数据。 JPA-backed `UserAgentDefinitionStore`. |
JpaUserStore | 类class | io.agentscope.builder.web.persistence.jpa | JPA 用户存储,负责持久化与读取数据。 JPA-backed `UserStore`. |
ManagedSessionEntity | 类class | io.agentscope.builder.web.persistence.jpa | 托管会话 Entity,在多次调用之间保存和恢复会话与记忆数据。 Managed-Agents-style session: pairs an agent reference with an environment and tracks status
via an append-only event log (`SessionEventEntity`). |
ManagedSessionEntityRepository | 接口interface | io.agentscope.builder.web.persistence.jpa | 定义托管会话 Entity 仓库契约的接口。 Spring Data repository for `ManagedSessionEntity`. |
MemoryEntity | 类class | io.agentscope.builder.web.persistence.jpa | 记忆 Entity,在多次调用之间保存和恢复会话与记忆数据。 Path-addressed memory document inside a `MemoryStoreEntity`. |
MemoryEntityRepository | 接口interface | io.agentscope.builder.web.persistence.jpa | 定义记忆 Entity 仓库契约的接口。 Spring Data repository for `MemoryEntity`. |
MemoryStoreEntity | 类class | io.agentscope.builder.web.persistence.jpa | 记忆存储 Entity,在多次调用之间保存和恢复会话与记忆数据。 Cross-session memory store (mounted into a session sandbox as a directory). |
MemoryStoreEntityRepository | 接口interface | io.agentscope.builder.web.persistence.jpa | 定义记忆存储 Entity 仓库契约的接口。 Spring Data repository for `MemoryStoreEntity`. |
MemoryVersionEntity | 类class | io.agentscope.builder.web.persistence.jpa | 记忆版本 Entity,在多次调用之间保存和恢复会话与记忆数据。 Immutable version of a memory document for audit / point-in-time recovery. |
MemoryVersionEntityRepository | 接口interface | io.agentscope.builder.web.persistence.jpa | 定义记忆版本 Entity 仓库契约的接口。 Spring Data repository for `MemoryVersionEntity`. |
ResourceShareEntity | 类class | io.agentscope.builder.web.persistence.jpa | 资源 Share Entity,在多次调用之间保存和恢复会话与记忆数据。 A single sharing grant on a non-agent managed resource (environment / memory store / vault). |
ResourceShareEntityRepository | 接口interface | io.agentscope.builder.web.persistence.jpa | 定义资源 Share Entity 仓库契约的接口。 Spring Data repository for `ResourceShareEntity`. |
SessionEventEntity | 类class | io.agentscope.builder.web.persistence.jpa | 会话事件 Entity,在多次调用之间保存和恢复会话与记忆数据。 Append-only event row for a managed session (`domain.action` naming). |
SessionEventEntityRepository | 接口interface | io.agentscope.builder.web.persistence.jpa | 定义会话事件 Entity 仓库契约的接口。 Spring Data repository for `SessionEventEntity`. |
UserEntity | 类class | io.agentscope.builder.web.persistence.jpa | 用户 Entity,在多次调用之间保存和恢复会话与记忆数据。 Persistent representation of a builder user. |
UserEntityRepository | 接口interface | io.agentscope.builder.web.persistence.jpa | 定义用户 Entity 仓库契约的接口。 Spring Data repository for `UserEntity`. |
UserMarketplaceEntity | 类class | io.agentscope.builder.web.persistence.jpa | 用户市场 Entity,在多次调用之间保存和恢复会话与记忆数据。 Persistent representation of a single user-owned skill marketplace. |
UserMarketplaceRepository | 接口interface | io.agentscope.builder.web.persistence.jpa | 定义用户市场仓库契约的接口。 Spring Data repository for `UserMarketplaceEntity`. |
VaultCredentialEntity | 类class | io.agentscope.builder.web.persistence.jpa | Vault 凭证 Entity,在多次调用之间保存和恢复会话与记忆数据。 Encrypted credential entry inside a `VaultEntity`. |
VaultCredentialEntityRepository | 接口interface | io.agentscope.builder.web.persistence.jpa | 定义 Vault 凭证 Entity 仓库契约的接口。 Spring Data repository for `VaultCredentialEntity`. |
VaultEntity | 类class | io.agentscope.builder.web.persistence.jpa | Vault Entity,在多次调用之间保存和恢复会话与记忆数据。 Per-end-user credential vault referenced by sessions via vault_ids. |
VaultEntityRepository | 接口interface | io.agentscope.builder.web.persistence.jpa | 定义 Vault Entity 仓库契约的接口。 Spring Data repository for `VaultEntity`. |
AgentAccessGuard | 类class | io.agentscope.builder.web.share | 智能体访问守卫,承载智能体的部署、调度与服务化运行。 Convenience gate for controllers: resolve an agent by id (across globals, own, shared-in) and
verify the caller holds at least the required tier. |
AgentAclService | 类class | io.agentscope.builder.web.share | 智能体 Acl 服务,承载智能体的部署、调度与服务化运行。 Single source of truth for per-agent permissions. |
AgentShareGrant | 记录record | io.agentscope.builder.web.share | 承载智能体 Share Grant数据的记录类型。 A single sharing grant on an agent. |
AgentVisibilityResolver | 接口interface | io.agentscope.builder.web.share | 定义智能体 Visibility 解析器契约的接口。 Resolves whether an agent is visible to a user and returns its definition. |
JpaAgentVisibilityResolver | 类class | io.agentscope.builder.web.share | JPA 智能体 Visibility 解析器,承载智能体的部署、调度与服务化运行。 JPA-only `AgentVisibilityResolver`: a read view over the shared database, usable by any
plane that does not own the file-backed catalog (data plane, scheduler). |
ResourceAccessService | 类class | io.agentscope.builder.web.share | 资源访问服务,承载智能体的部署、调度与服务化运行。 Generic owner-or-shared access control for non-agent managed resources (environments, memory
stores, vaults). |
ShareRequest | 记录record | io.agentscope.builder.web.share | 承载 Share 请求数据的记录类型。 Request body for granting a `ResourceAccessService` share on a non-agent managed
resource (environment / memory store / vault). |
SharedWorkspacePaths | 类class | io.agentscope.builder.web.workspace | 共享工作区 Paths,承载智能体的部署、调度与服务化运行。 Resolves on-disk paths derived from the platform-wide shared workspace root, without composing
any filesystem instances. |