pub struct RKLLMResult {
pub text: String,
pub token_id: i32,
pub last_hidden_layer: RKLLMResultLastHiddenLayer,
}Expand description
Represents the result of an LLM inference.
Fields§
§text: StringThe generated text from the LLM.
token_id: i32The ID of the generated token.
The last hidden layer’s states if requested during inference.
Trait Implementations§
Source§impl Clone for RKLLMResult
impl Clone for RKLLMResult
Source§fn clone(&self) -> RKLLMResult
fn clone(&self) -> RKLLMResult
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 RKLLMResult
impl RefUnwindSafe for RKLLMResult
impl !Send for RKLLMResult
impl !Sync for RKLLMResult
impl Unpin for RKLLMResult
impl UnwindSafe for RKLLMResult
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