pub struct LogprobeContent {
pub token: String,
pub logprob: f32,
pub bytes: Option<Vec<u8>>,
pub top_logprobs: Vec<TopLogprob>,
}
Expand description
A list of message content tokens with log probability information.
Fields§
§token: String
§logprob: f32
§bytes: Option<Vec<u8>>
§top_logprobs: Vec<TopLogprob>
Trait Implementations§
Source§impl Debug for LogprobeContent
impl Debug for LogprobeContent
Source§impl<'de> Deserialize<'de> for LogprobeContent
impl<'de> Deserialize<'de> for LogprobeContent
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 LogprobeContent
impl RefUnwindSafe for LogprobeContent
impl Send for LogprobeContent
impl Sync for LogprobeContent
impl Unpin for LogprobeContent
impl UnwindSafe for LogprobeContent
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