pub struct ChoiceDelta {
pub content: Option<CompletionContent>,
pub function_call: Option<ChoiceDeltaFunctionCall>,
pub refusal: Option<String>,
pub role: Option<CompletionRole>,
pub tool_calls: Option<Vec<ChoiceDeltaToolCall>>,
}
Fields§
§content: Option<CompletionContent>
The contents of the chunk message.
function_call: Option<ChoiceDeltaFunctionCall>
Deprecated and replaced by tool_calls
.
The name and arguments of a function that should be called, as generated by the model.
refusal: Option<String>
The refusal message generated by the model.
role: Option<CompletionRole>
The role of the author of this message.
tool_calls: Option<Vec<ChoiceDeltaToolCall>>
A list of tool calls generated by the model, such as function calls.
Trait Implementations§
Source§impl Debug for ChoiceDelta
impl Debug for ChoiceDelta
Source§impl<'de> Deserialize<'de> for ChoiceDelta
impl<'de> Deserialize<'de> for ChoiceDelta
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 ChoiceDelta
impl RefUnwindSafe for ChoiceDelta
impl Send for ChoiceDelta
impl Sync for ChoiceDelta
impl Unpin for ChoiceDelta
impl UnwindSafe for ChoiceDelta
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