pub struct StreamResponse {
pub content: AssistantContent,
pub stop_reason: StopReason,
pub error_message: Option<String>,
pub tool_calls: Vec<ToolCall>,
}Expand description
Final assembled response from one LLM call. Producers that don’t need
fine-grained streaming can return a BoxStream that yields just one
Done event.
Fields§
§content: AssistantContent§stop_reason: StopReason§error_message: Option<String>§tool_calls: Vec<ToolCall>Trait Implementations§
Source§impl Clone for StreamResponse
impl Clone for StreamResponse
Source§fn clone(&self) -> StreamResponse
fn clone(&self) -> StreamResponse
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 moreAuto Trait Implementations§
impl Freeze for StreamResponse
impl RefUnwindSafe for StreamResponse
impl Send for StreamResponse
impl Sync for StreamResponse
impl Unpin for StreamResponse
impl UnsafeUnpin for StreamResponse
impl UnwindSafe for StreamResponse
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