pub struct GenerateResult {
pub output_tokens: Vec<u32>,
pub finish_reason: String,
}Expand description
2026-09-25: Result of a generate call.
Fields§
§output_tokens: Vec<u32>2026-09-25: Output tokens, without the prompt tokens.
finish_reason: String2026-09-25: Why generation stopped: "stop" (a token in
params.stop_token_ids) or "length".
Auto Trait Implementations§
impl Freeze for GenerateResult
impl RefUnwindSafe for GenerateResult
impl Send for GenerateResult
impl Sync for GenerateResult
impl Unpin for GenerateResult
impl UnwindSafe for GenerateResult
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