pub enum RuntimeEffectCommand {
LlmCall {
request: Box<LlmRequestSpec>,
},
Direct {
request: Box<LlmRequestSpec>,
usage_source: String,
},
ToolCall {
call: PreparedToolCall,
},
Process {
command: ProcessCommand,
},
ExecCode {
code: String,
},
Checkpoint {
checkpoint: CheckpointKind,
},
SyncExecutionSurface {
update_machine_config: bool,
},
Sleep {
duration_ms: u64,
},
}Expand description
Serializable command emitted at Lash’s nondeterministic runtime boundary.
Variants§
LlmCall
Fields
§
request: Box<LlmRequestSpec>Direct
ToolCall
Fields
§
call: PreparedToolCallProcess
Fields
§
command: ProcessCommandExecCode
Checkpoint
Fields
§
checkpoint: CheckpointKindSyncExecutionSurface
Sleep
Implementations§
Source§impl RuntimeEffectCommand
impl RuntimeEffectCommand
pub fn kind(&self) -> RuntimeEffectKind
Trait Implementations§
Source§impl Clone for RuntimeEffectCommand
impl Clone for RuntimeEffectCommand
Source§fn clone(&self) -> RuntimeEffectCommand
fn clone(&self) -> RuntimeEffectCommand
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 RuntimeEffectCommand
impl Debug for RuntimeEffectCommand
Source§impl<'de> Deserialize<'de> for RuntimeEffectCommand
impl<'de> Deserialize<'de> for RuntimeEffectCommand
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 !RefUnwindSafe for RuntimeEffectCommand
impl !UnwindSafe for RuntimeEffectCommand
impl Freeze for RuntimeEffectCommand
impl Send for RuntimeEffectCommand
impl Sync for RuntimeEffectCommand
impl Unpin for RuntimeEffectCommand
impl UnsafeUnpin for RuntimeEffectCommand
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