pub struct ChoiceMessageDelta {
pub content: Option<String>,
pub reasoning_content: Option<String>,
pub tool_calls: Option<Vec<ToolCall>>,
pub role: Option<Role>,
}Expand description
Assistant message delta in streaming responses.
Fields§
§content: Option<String>The contents of the chunk message.
reasoning_content: Option<String>For thinking mode only. The reasoning contents of the assistant message, before the final answer.
tool_calls: Option<Vec<ToolCall>>§role: Option<Role>Possible values: [assistant]
The role of the author of this message.
Trait Implementations§
Source§impl Clone for ChoiceMessageDelta
impl Clone for ChoiceMessageDelta
Source§fn clone(&self) -> ChoiceMessageDelta
fn clone(&self) -> ChoiceMessageDelta
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ChoiceMessageDelta
impl Debug for ChoiceMessageDelta
Source§impl<'de> Deserialize<'de> for ChoiceMessageDelta
impl<'de> Deserialize<'de> for ChoiceMessageDelta
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
impl Eq for ChoiceMessageDelta
Source§impl PartialEq for ChoiceMessageDelta
impl PartialEq for ChoiceMessageDelta
Source§fn eq(&self, other: &ChoiceMessageDelta) -> bool
fn eq(&self, other: &ChoiceMessageDelta) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ChoiceMessageDelta
impl Serialize for ChoiceMessageDelta
impl StructuralPartialEq for ChoiceMessageDelta
Auto Trait Implementations§
impl Freeze for ChoiceMessageDelta
impl RefUnwindSafe for ChoiceMessageDelta
impl Send for ChoiceMessageDelta
impl Sync for ChoiceMessageDelta
impl Unpin for ChoiceMessageDelta
impl UnsafeUnpin for ChoiceMessageDelta
impl UnwindSafe for ChoiceMessageDelta
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.