pub enum RuntimeEffectCommand {
LlmCall {
request: Box<LlmRequestSpec>,
},
Direct {
request: Box<LlmRequestSpec>,
usage_source: String,
},
ToolCall {
call: PreparedToolCall,
},
ToolBatch {
batch: PreparedToolBatch,
},
Process {
command: Box<ProcessCommand>,
},
ExecCode {
language: String,
code: String,
},
Checkpoint {
checkpoint: CheckpointKind,
},
SyncExecutionEnvironment {
update_machine_config: bool,
},
Sleep {
duration_ms: u64,
},
AwaitEvent {
key: AwaitEventKey,
},
DurableStep {
step_id: String,
input: Value,
},
}Expand description
Serializable command emitted at Lash’s nondeterministic runtime boundary.
Variants§
LlmCall
Fields
§
request: Box<LlmRequestSpec>Direct
ToolCall
Fields
§
call: PreparedToolCallToolBatch
Fields
§
batch: PreparedToolBatchProcess
Fields
§
command: Box<ProcessCommand>ExecCode
Checkpoint
Fields
§
checkpoint: CheckpointKindSyncExecutionEnvironment
Sleep
AwaitEvent
Fields
§
key: AwaitEventKeyDurableStep
Implementations§
Source§impl RuntimeEffectCommand
impl RuntimeEffectCommand
pub fn process(command: ProcessCommand) -> 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<RuntimeEffectCommand, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<RuntimeEffectCommand, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for RuntimeEffectCommand
impl Serialize for RuntimeEffectCommand
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. 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