pub struct Delta {
pub role: Option<Role>,
pub content: Option<String>,
pub tool_calls: Vec<ToolCallDelta>,
pub reasoning: Option<String>,
pub reasoning_details: Vec<ReasoningDetail>,
}Expand description
Incremental delta on a streaming choice.
Fields§
§role: Option<Role>First chunk only.
content: Option<String>Incremental text.
tool_calls: Vec<ToolCallDelta>§reasoning: Option<String>Incremental open reasoning text, if any.
reasoning_details: Vec<ReasoningDetail>Incremental structured reasoning blocks (open / hidden — see ReasoningDetail).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Delta
impl<'de> Deserialize<'de> for Delta
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 StructuralPartialEq for Delta
Auto Trait Implementations§
impl Freeze for Delta
impl RefUnwindSafe for Delta
impl Send for Delta
impl Sync for Delta
impl Unpin for Delta
impl UnsafeUnpin for Delta
impl UnwindSafe for Delta
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