AS AgentScopeAPI 手册 / API Reference
包package io.agentscope.harness.agent.sandbox

io.agentscope.harness.agent.sandbox

package io.agentscope.harness.agent.sandbox

io.agentscope.harness.agent.sandbox 属于运行时与部署,服务化、调度、控制面与 Web 应用。 该包共收录 33 个公开类型。

io.agentscope.harness.agent.sandbox belongs to the Runtime & deployment layer and contains 33 public types.

所属构件Artifacts agentscope-harness

接口Interfaces

类型Type种类Kind说明Description
Sandbox接口interface
定义沙箱契约的接口。
An active sandbox with a fully isolated workspace.
SandboxAware接口interface
定义沙箱 Aware契约的接口。
Marks a filesystem that can have its backing `Sandbox` injected at runtime.
SandboxClient接口interface
定义沙箱客户端契约的接口。
Factory for creating and resuming `Sandbox` instances.
SandboxExecutionGuard接口interface
定义沙箱执行守卫契约的接口。
Pluggable concurrency guard for sandbox execution slots.
SandboxFileTransfer接口interface
定义沙箱文件 Transfer契约的接口。
Optional capability for `Sandbox` backends that support native (non-exec) file transfer, e.g.
SandboxLease接口interface
定义沙箱 Lease契约的接口。
A handle that represents a held execution right on a sandbox isolation slot.

类Classes

类型Type种类Kind说明Description
AbstractBaseSandbox类class
抽象基类沙箱,承载智能体的部署、调度与服务化运行。
Abstract base implementation of `Sandbox` with the 4-branch workspace start logic.
SandboxAcquireResult类class
沙箱 Acquire 结果,承载智能体的部署、调度与服务化运行。
Result of acquiring a `Sandbox` from `SandboxManager`.
SandboxClientOptions类class
沙箱客户端配置选项的基类。
Base class for sandbox client configuration options.
SandboxContext类class
用于沙箱行为的不可变配置。
Immutable configuration for sandbox behavior.
SandboxException类class
沙箱异常,表示执行过程中的错误。
Base exception for all sandbox operations.
SandboxIsolationKey类class
沙箱隔离键,承载智能体的部署、调度与服务化运行。
Immutable key that uniquely identifies a sandbox state slot for a given `IsolationScope`.
SandboxManager类class
沙箱管理器,承载智能体的部署、调度与服务化运行。
Manages the lifecycle of `Sandbox` instances for the current call.
SandboxState类class
沙箱状态,承载智能体的部署、调度与服务化运行。
Serializable state of a sandbox, persisted by `SessionSandboxStateStore` so a sandbox can be resumed across calls.
SessionSandboxStateStore类class
会话沙箱状态存储,负责持久化与读取数据。
Sandbox state store backed by the generic AgentScope `AgentStateStore` abstraction.
WorkspaceArchiveExtractor类class
工作区归档 Extractor,承载智能体的部署、调度与服务化运行。
Securely extracts tar archives into a target directory.
WorkspaceMountSupport类class
工作区 Mount Support,承载智能体的部署、调度与服务化运行。
Helpers for `io.agentscope.harness.agent.sandbox.layout.BindMountEntry` handling.
WorkspaceProjectionApplier类class
工作区 Projection Applier,承载智能体的部署、调度与服务化运行。
Builds a deterministic archive payload for workspace projection entries.
WorkspaceSpec类class
工作区规格,承载智能体的部署、调度与服务化运行。
Describes the desired initial state of a sandbox workspace: root path, materialized file/directory entries, and per-exec environment variables.
WorkspaceSpecApplier类class
工作区规格 Applier,承载智能体的部署、调度与服务化运行。
Applies a `WorkspaceSpec` to a target directory by materializing declared entries (files, directories, local copies).

枚举Enums

类型Type种类Kind说明Description
SandboxErrorCode枚举enum
定义沙箱错误 Code相关取值的枚举。
Error codes for sandbox operations, used in `SandboxException` and its subclasses.

记录Records

类型Type种类Kind说明Description
ExecResult记录record
沙箱命令执行的结果。
Result of a sandbox command execution.
基于官方固定版本源码静态生成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.