pub struct ManifestRuntime { /* private fields */ }Expand description
Default AgentRuntime: substitution-fill a manifest role and spawn it as a
local OS process.
Implementations§
Trait Implementations§
Source§impl AgentRuntime for ManifestRuntime
impl AgentRuntime for ManifestRuntime
Source§fn spawn_session(
&self,
role: &str,
keys: &BTreeMap<String, String>,
) -> Result<Spawned, RuntimeError>
fn spawn_session( &self, role: &str, keys: &BTreeMap<String, String>, ) -> Result<Spawned, RuntimeError>
Spawn a detached session from a
[session.<role>] template, filling
its substitution keys. Returns once the process exists (REQ-SEAM-SPAWN).Source§fn run_bounded_stdin(
&self,
role: &str,
keys: &BTreeMap<String, String>,
timeout: Duration,
stdin: Option<&[u8]>,
) -> Result<BoundedOutput, RuntimeError>
fn run_bounded_stdin( &self, role: &str, keys: &BTreeMap<String, String>, timeout: Duration, stdin: Option<&[u8]>, ) -> Result<BoundedOutput, RuntimeError>
Run a bounded role invocation to completion under
timeout, feeding
optional stdin and capturing output. Hung children are killed
(REQ-HAZARD-SUBPROCESS-TIMEOUT). stdin is the channel the echo-commune
(M2b) feeds normalized history to a cheap-model summarizer template.Source§fn run_bounded(
&self,
role: &str,
keys: &BTreeMap<String, String>,
timeout: Duration,
) -> Result<BoundedOutput, RuntimeError>
fn run_bounded( &self, role: &str, keys: &BTreeMap<String, String>, timeout: Duration, ) -> Result<BoundedOutput, RuntimeError>
Bounded role invocation with no stdin — sugar over
Self::run_bounded_stdin.Auto Trait Implementations§
impl Freeze for ManifestRuntime
impl RefUnwindSafe for ManifestRuntime
impl Send for ManifestRuntime
impl Sync for ManifestRuntime
impl Unpin for ManifestRuntime
impl UnwindSafe for ManifestRuntime
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more