pub enum RuntimeEffectOutcome {
LlmCall {
result: Result<LlmResponse, LlmCallError>,
text_streamed: bool,
},
Direct {
result: Result<LlmResponse, LlmCallError>,
},
ToolCall {
result: CompletedToolCall,
host_events: Vec<ToolHostEventEffectOutcome>,
},
Process {
result: ProcessEffectOutcome,
},
ExecCode {
result: Result<ExecResponse, String>,
},
Checkpoint {
result: Result<CheckpointDelivery, RuntimeEffectControllerError>,
},
SyncExecutionSurface {
result: Result<Option<ExecutionSurfaceSync>, String>,
},
Sleep,
}Expand description
Serializable result of a runtime effect command.
Variants§
LlmCall
Direct
Fields
§
result: Result<LlmResponse, LlmCallError>ToolCall
Process
Fields
§
result: ProcessEffectOutcomeExecCode
Fields
§
result: Result<ExecResponse, String>Checkpoint
Fields
SyncExecutionSurface
Fields
§
result: Result<Option<ExecutionSurfaceSync>, String>Sleep
Implementations§
Source§impl RuntimeEffectOutcome
impl RuntimeEffectOutcome
pub fn into_llm_call( self, ) -> Result<(Result<LlmResponse, LlmCallError>, bool), RuntimeEffectControllerError>
pub fn into_direct_response( self, ) -> Result<Result<LlmResponse, LlmCallError>, RuntimeEffectControllerError>
pub fn into_tool_call( self, ) -> Result<CompletedToolCall, RuntimeEffectControllerError>
pub fn into_tool_call_effect( self, ) -> Result<ToolCallEffectOutcome, RuntimeEffectControllerError>
pub fn into_process( self, ) -> Result<ProcessEffectOutcome, RuntimeEffectControllerError>
pub fn into_exec_code( self, ) -> Result<Result<ExecResponse, String>, RuntimeEffectControllerError>
pub fn into_sync_execution_surface( self, ) -> Result<Result<Option<ExecutionSurfaceSync>, String>, RuntimeEffectControllerError>
pub fn kind(&self) -> RuntimeEffectKind
Trait Implementations§
Source§impl Clone for RuntimeEffectOutcome
impl Clone for RuntimeEffectOutcome
Source§fn clone(&self) -> RuntimeEffectOutcome
fn clone(&self) -> RuntimeEffectOutcome
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 RuntimeEffectOutcome
impl Debug for RuntimeEffectOutcome
Source§impl<'de> Deserialize<'de> for RuntimeEffectOutcome
impl<'de> Deserialize<'de> for RuntimeEffectOutcome
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 RuntimeEffectOutcome
impl !UnwindSafe for RuntimeEffectOutcome
impl Freeze for RuntimeEffectOutcome
impl Send for RuntimeEffectOutcome
impl Sync for RuntimeEffectOutcome
impl Unpin for RuntimeEffectOutcome
impl UnsafeUnpin for RuntimeEffectOutcome
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