pub struct Choice {
pub finish_reason: FinishReason,
pub index: usize,
pub text: Option<String>,
pub message: Option<AssistantMessage>,
pub logprobs: Option<LogProbWrap>,
}Expand description
Represents a choice made during a process.
Fields§
§finish_reason: FinishReasonReason for finishing the process.
index: usizeIndex of the choice.
text: Option<String>Message associated with the choice.
message: Option<AssistantMessage>Message associated with the choice.
logprobs: Option<LogProbWrap>Optional log probability information.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Choice
impl<'de> Deserialize<'de> for Choice
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 Choice
impl RefUnwindSafe for Choice
impl Send for Choice
impl Sync for Choice
impl Unpin for Choice
impl UnwindSafe for Choice
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