Skip to main content

Module code

Module code 

Source
Available on crate feature code only.
Expand description

Code execution substrate (experimental — labs preset).

First-class code execution for agents, Studio, and generated projects:

Available with feature: code

Modules§

a2a_compat
A2A-compatible event mapping boundary for collaboration transport.
compat
Migration compatibility guide.
diagnostics
Rust compiler diagnostic parsing.
harness
Harness template and source validation for Rust code execution.

Structs§

ArtifactRef
Reference to an externally stored artifact.
BackendCapabilities
Capabilities that a backend can actually enforce.
CodeResult
Result of a successful RustExecutor::execute call.
CodeTool
A tool that executes code through language-specific pipelines.
CollaborationEvent
A typed collaboration event for cross-agent coordination in a shared workspace.
ContainerCommandExecutor
CLI-based container executor that shells out to docker run per execution.
ContainerConfig
Configuration for the CLI-based container command executor.
DockerConfig
Configuration for the Docker executor.
ExecutionMetadata
Execution metadata for telemetry, audit, and artifact correlation.
ExecutionRequest
A full execution request.
ExecutionResult
Structured result of a code execution.
RustDiagnostic
A parsed Rust compiler diagnostic.
RustExecutor
Rust-specific executor that compiles code through a check → build → execute pipeline and delegates execution to a SandboxBackend.
RustExecutorConfig
Configuration for the RustExecutor pipeline.
RustSandboxConfig
Configuration for the Rust sandbox executor.
RustSandboxExecutor
The flagship Rust-authored code execution backend.
SandboxPolicy
Sandbox policy describing the requested execution constraints.
WasmGuestConfig
Configuration for the WASM guest executor.
WasmGuestExecutor
Guest-module backend for precompiled .wasm modules.
Workspace
A shared project context for collaborative code generation and execution.
WorkspaceBuilder
Builder for constructing a Workspace with fluent configuration.
WorkspaceMetadata
Metadata about a workspace project and execution session.

Enums§

CodeError
Errors from the language-aware code pipeline (RustExecutor).
CollaborationEventKind
The kind of a collaboration event in a shared workspace.
EnvironmentPolicy
Environment variable access policy for sandboxed execution.
ExecutionError
Errors that can occur during code execution.
ExecutionIsolation
Backend isolation class.
ExecutionLanguage
Supported execution languages.
ExecutionPayload
The code or module to execute.
ExecutionStatus
Terminal status of an execution.
FilesystemPolicy
Filesystem access policy for sandboxed execution.
GuestModuleFormat
Format of a precompiled guest module.
NetworkPolicy
Network access policy for sandboxed execution.

Constants§

HARNESS_TEMPLATE
The harness template that wraps user code.

Traits§

CodeExecutor
Async trait for code execution backends.

Functions§

parse_diagnostics
Parse rustc JSON diagnostics from --error-format=json output.
validate_policy
Validates that the backend can enforce the requested sandbox policy.
validate_request
Validates a full execution request against a backend’s capabilities.
validate_rust_source
Validate that user source code fits the phase 1 bounded source model.
validate_wasm_bytes
Validate that the bytes represent a valid WASM binary module.