pub struct ChatCompletionStreamResponseDelta {
pub content: Option<String>,
pub function_call: Option<ChatCompletionStreamResponseDelta_FunctionCall>,
pub tool_calls: Option<Vec<ChatCompletionMessageToolCallChunk>>,
pub role: Option<String>,
pub refusal: Option<String>,
}
Expand description
A chat completion delta generated by streamed model responses.
Fields§
§content: Option<String>
The contents of the chunk message.
function_call: Option<ChatCompletionStreamResponseDelta_FunctionCall>
§tool_calls: Option<Vec<ChatCompletionMessageToolCallChunk>>
§role: Option<String>
The role of the author of this message.
refusal: Option<String>
The refusal message generated by the model.
Trait Implementations§
Source§impl Clone for ChatCompletionStreamResponseDelta
impl Clone for ChatCompletionStreamResponseDelta
Source§fn clone(&self) -> ChatCompletionStreamResponseDelta
fn clone(&self) -> ChatCompletionStreamResponseDelta
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Default for ChatCompletionStreamResponseDelta
impl Default for ChatCompletionStreamResponseDelta
Source§fn default() -> ChatCompletionStreamResponseDelta
fn default() -> ChatCompletionStreamResponseDelta
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ChatCompletionStreamResponseDelta
impl RefUnwindSafe for ChatCompletionStreamResponseDelta
impl Send for ChatCompletionStreamResponseDelta
impl Sync for ChatCompletionStreamResponseDelta
impl Unpin for ChatCompletionStreamResponseDelta
impl UnwindSafe for ChatCompletionStreamResponseDelta
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