struct StreamedChat {
content: String,
tool_calls: BTreeMap<usize, PendingToolCall>,
usage: Option<Usage>,
raw_events: String,
}Fields§
§content: String§tool_calls: BTreeMap<usize, PendingToolCall>§usage: Option<Usage>§raw_events: StringImplementations§
Source§impl StreamedChat
impl StreamedChat
fn into_message(self) -> Value
Trait Implementations§
Source§impl Default for StreamedChat
impl Default for StreamedChat
Source§fn default() -> StreamedChat
fn default() -> StreamedChat
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for StreamedChat
impl RefUnwindSafe for StreamedChat
impl Send for StreamedChat
impl Sync for StreamedChat
impl Unpin for StreamedChat
impl UnsafeUnpin for StreamedChat
impl UnwindSafe for StreamedChat
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