Skip to main content

Crate ncp_runtime

Crate ncp_runtime 

Source
Expand description

NCP reference runtime.

ncp-runtime provides the reference executor and CLI for the Neural Computation Protocol: composable, auditable WASM Brick graphs for agentic AI systems.

Most users start with the ncp CLI:

cargo install ncp-runtime --version 0.3.6 --locked
ncp --version

The runtime loads graph manifests, verifies Brick digests, executes WASM Bricks through Wasmtime, routes results deterministically, and emits replayable JSONL traces.

Useful links:

Note: the CLI/runtime is stable enough for evaluation and early integration. Treat the Rust module API as reference-runtime internals until the SDK work lands.

Modules§

engine
envelope
manifest
mapping
resolver
result
router
trace

Structs§

ExecuteHooks
Hooks for streaming execution events.
ExecuteOptions
Options for a single execute() call.
ExecutionReport
Report from a single graph execution.
InvokeMetric
Per-invoke metric emitted to hooks.
ResolvedBrickInfo
Info about a resolved brick, for caller-side logging.
ResultCounts
Execution result counts.
RuntimeContext
Loaded + compiled graph context. Reusable across multiple execute() calls.
TerminalResult
A terminal result from graph execution.

Constants§

RUNTIME_VERSION
WASMTIME_MAJOR

Functions§

now_rfc3339