pub struct GenOutput {
pub tokens: Vec<u32>,
pub stop_reason: StopReason,
}Expand description
Result of generate_with: the generated token ids + why it stopped.
Fields§
§tokens: Vec<u32>§stop_reason: StopReasonAuto Trait Implementations§
impl Freeze for GenOutput
impl RefUnwindSafe for GenOutput
impl Send for GenOutput
impl Sync for GenOutput
impl Unpin for GenOutput
impl UnsafeUnpin for GenOutput
impl UnwindSafe for GenOutput
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