pub struct Generation {
pub text: String,
pub likelihood: f64,
pub token_likelihoods: Vec<TokenLikelihood>,
}
Fields§
§text: String
Contains the generated text.
likelihood: f64
The sum of the log-likelihood of each token in the string.
token_likelihoods: Vec<TokenLikelihood>
Only returned if return_likelihoods
is not set to NONE.
The likelihood.
Trait Implementations§
Source§impl Debug for Generation
impl Debug for Generation
Source§impl<'de> Deserialize<'de> for Generation
impl<'de> Deserialize<'de> for Generation
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Generation
impl RefUnwindSafe for Generation
impl Send for Generation
impl Sync for Generation
impl Unpin for Generation
impl UnwindSafe for Generation
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