Expand description
Loading a process driver: the artifact a transport: process manifest names under
inference.driver, which knows how to drive one harness CLI.
A process driver is pure translation and is granted nothing. ProcessDriver instantiates
it on an empty WASI context with no Murmur host import, so a driver that reaches for anything
else fails to load rather than running with less than it expected.
Re-exports§
pub use crate::bindings::process_driver::exports::murmur::driver::process::Bridge;pub use crate::bindings::process_driver::exports::murmur::driver::process::Description;pub use crate::bindings::process_driver::exports::murmur::driver::process::DriverFile;pub use crate::bindings::process_driver::exports::murmur::driver::process::Event;pub use crate::bindings::process_driver::exports::murmur::driver::process::ExitStatus;pub use crate::bindings::process_driver::exports::murmur::driver::process::FailureKind;pub use crate::bindings::process_driver::exports::murmur::driver::process::InterruptMethod;pub use crate::bindings::process_driver::exports::murmur::driver::process::LaunchPlan;pub use crate::bindings::process_driver::exports::murmur::driver::process::LaunchRequest;pub use crate::bindings::process_driver::exports::murmur::driver::process::RetryInfo;pub use crate::bindings::process_driver::exports::murmur::driver::process::Session;pub use crate::bindings::process_driver::exports::murmur::driver::process::SessionInfo;pub use crate::bindings::process_driver::exports::murmur::driver::process::SessionMode;pub use crate::bindings::process_driver::exports::murmur::driver::process::ToolCallInfo;pub use crate::bindings::process_driver::exports::murmur::driver::process::ToolCallProgress;pub use crate::bindings::process_driver::exports::murmur::driver::process::ToolCallStart;pub use crate::bindings::process_driver::exports::murmur::driver::process::ToolResultInfo;pub use crate::bindings::process_driver::exports::murmur::driver::process::TurnFailure;pub use crate::bindings::process_driver::exports::murmur::driver::process::Usage;
Structs§
- Process
Driver - One instantiated process driver. The runtime keeps one for a whole run, so the driver may
carry what
launchwas given intoparse.
Constants§
- PROCESS_
DRIVER_ IFACE - The instance name every process driver exports.
Functions§
- check_
driver_ interface - Checks the inference driver’s exports against the transport that names it.
- check_
required_ env - Checks that every variable
description.required_envnames is declared incapabilities.env.allow, given asenv_allow. Names match exactly. - check_
stream_ interface - Checks a
runtime: driverartifact’s imports against the stream interface this host serves. - describe_
process_ driver_ wasm - Compiles
wasmas a process driver on a fresh engine, instantiates it with no grants, and returns what itsdescribereports. - launch_
and_ parse_ process_ driver_ wasm - Compiles
wasmas a process driver the waydescribe_process_driver_wasmdoes, then callslaunchwithrequestandparsewithlineson that one instance, as a run would.