pub enum Response {
ExecutionSurfaceSynced {
id: EffectId,
result: Result<Option<ExecutionSurfaceSync>, String>,
},
LlmComplete {
id: EffectId,
result: Result<LlmResponse, LlmCallError>,
text_streamed: bool,
},
ToolResults {
id: EffectId,
results: Vec<CompletedToolCall>,
},
ExecResult {
id: EffectId,
result: Result<ExecResponse, String>,
},
Checkpoint {
id: EffectId,
delivery: CheckpointDelivery,
},
}Expand description
A response to a previously emitted effect.
Variants§
ExecutionSurfaceSynced
Live execution surface sync completed.
LlmComplete
Full LLM response.
Fields
§
result: Result<LlmResponse, LlmCallError>ToolResults
Native tool results.
ExecResult
Mode code execution result.
Checkpoint
Checkpoint result with optional injected messages.
Auto Trait Implementations§
impl Freeze for Response
impl RefUnwindSafe for Response
impl Send for Response
impl Sync for Response
impl Unpin for Response
impl UnsafeUnpin for Response
impl UnwindSafe for Response
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