#[repr(C)]pub struct RKLLMResult {
pub text: *const c_char,
pub token_id: i32,
pub last_hidden_layer: RKLLMResultLastHiddenLayer,
pub logits: RKLLMResultLogits,
pub perf: RKLLMPerfStat,
}
Expand description
@struct RKLLMResult @brief Structure to represent the result of LLM inference.
Fields§
§text: *const c_char
< Generated text result.
token_id: i32
< ID of the generated token.
< Hidden states of the last layer (if requested).
logits: RKLLMResultLogits
< Model output logits.
perf: RKLLMPerfStat
< Pointer to performance statistics (prefill and generate).
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 moreSource§impl Debug for RKLLMResult
impl Debug for RKLLMResult
impl Copy for RKLLMResult
Auto 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