pub struct OrdinaryBinding { /* private fields */ }Expand description
Explicit environment plus a trusted assembly callback. The environment is shared by Session storage, builtin tools and skill execution for this Agent; do not reuse it across Agents (its process cleanup ownership is per Agent).
Implementations§
Source§impl OrdinaryBinding
impl OrdinaryBinding
pub fn new( environment: Arc<OsExecutionEnv>, binder: OrdinaryBinder, ) -> BackendResult<Self>
Sourcepub fn new_deferred(
environment: Arc<OsExecutionEnv>,
validator: OrdinaryDeferredBinder,
) -> BackendResult<Self>
pub fn new_deferred( environment: Arc<OsExecutionEnv>, validator: OrdinaryDeferredBinder, ) -> BackendResult<Self>
Split pure readonly validation from asynchronous owned assembly. Only restore polls the returned plan; preflight drops it without polling. Assembly must retain all callback/library ownership through failure and cleanup; the backend validates its complete options before commit_strict.
Sourcepub fn with_extensions(self, custody: Arc<NativeExtensionCustody>) -> Self
pub fn with_extensions(self, custody: Arc<NativeExtensionCustody>) -> Self
Attach the concrete DLL batch loaded by this binding’s owned assembly. Its workers/callbacks/physical cleanup become part of the backend’s writer and residency barrier, including failed startup. This trusted Rust API does not expose DLLs through profile/model/IPC input.