pub struct LLMResponse {
pub outcome: Result<StreamResult, InferenceError>,
}Expand description
LLM response extension: set after inference completes (success or error).
Fields§
§outcome: Result<StreamResult, InferenceError>Inference outcome: success with a StreamResult or failure with an InferenceError.
Implementations§
Source§impl LLMResponse
impl LLMResponse
pub fn success(result: StreamResult) -> Self
pub fn error(error: InferenceError) -> Self
Trait Implementations§
Source§impl Clone for LLMResponse
impl Clone for LLMResponse
Source§fn clone(&self) -> LLMResponse
fn clone(&self) -> LLMResponse
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 moreAuto Trait Implementations§
impl Freeze for LLMResponse
impl RefUnwindSafe for LLMResponse
impl Send for LLMResponse
impl Sync for LLMResponse
impl Unpin for LLMResponse
impl UnwindSafe for LLMResponse
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