pub struct GenerateResult {
pub output_tokens: Vec<u32>,
pub finish_reason: String,
}Expand description
Result of a generate call.
Fields§
§output_tokens: Vec<u32>Output tokens (does not include prompt tokens).
finish_reason: StringWhy generation stopped: “stop” (EOS/stop token) or “length” (max_tokens).
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