pub enum RuntimeEffect {
LLMCall {
provider: String,
input: Value,
},
ToolCall {
tool: String,
input: Value,
},
StateWrite {
step_id: Option<String>,
payload: Value,
},
InterruptRaise {
value: Value,
},
}Expand description
A single runtime side effect that the kernel (or adapters) must capture.
Every LLM call, tool call, state write, and interrupt raise is recorded as one of these variants so that execution is fully auditable and replay-safe.
Variants§
LLMCall
An LLM was invoked (provider + input).
ToolCall
A tool was invoked (tool name + input).
StateWrite
State was written (e.g. after a step; step_id and payload).
InterruptRaise
An interrupt was raised (e.g. human-in-the-loop; value for resolver).
Trait Implementations§
Source§impl Clone for RuntimeEffect
impl Clone for RuntimeEffect
Source§fn clone(&self) -> RuntimeEffect
fn clone(&self) -> RuntimeEffect
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RuntimeEffect
impl Debug for RuntimeEffect
Source§impl<'de> Deserialize<'de> for RuntimeEffect
impl<'de> Deserialize<'de> for RuntimeEffect
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for RuntimeEffect
impl RefUnwindSafe for RuntimeEffect
impl Send for RuntimeEffect
impl Sync for RuntimeEffect
impl Unpin for RuntimeEffect
impl UnsafeUnpin for RuntimeEffect
impl UnwindSafe for RuntimeEffect
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