pub struct Candidate {
pub text: String,
pub function_calls: Vec<FunctionCall>,
pub finish_reason: Option<String>,
}Expand description
The assembled state of a single candidates[index].
Fields§
§text: StringThe concatenated text from every parts[].text fragment.
function_calls: Vec<FunctionCall>Function calls in arrival order.
finish_reason: Option<String>The finishReason, set when the final chunk for this candidate arrives.
Trait Implementations§
impl Eq for Candidate
impl StructuralPartialEq for Candidate
Auto Trait Implementations§
impl Freeze for Candidate
impl RefUnwindSafe for Candidate
impl Send for Candidate
impl Sync for Candidate
impl Unpin for Candidate
impl UnsafeUnpin for Candidate
impl UnwindSafe for Candidate
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