pub struct StreamResult {
pub stream: Pin<Box<dyn Stream<Item = Result<StreamPart, AiMuxError>> + Send>>,
pub request_body: Option<Value>,
pub response_headers: Option<HashMap<String, String>>,
}Expand description
Result of LanguageModel::do_stream (streaming).
Fields§
§stream: Pin<Box<dyn Stream<Item = Result<StreamPart, AiMuxError>> + Send>>The stream of StreamPart items.
request_body: Option<Value>The request body that was sent (for debugging).
response_headers: Option<HashMap<String, String>>Response headers.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for StreamResult
impl !Sync for StreamResult
impl !UnwindSafe for StreamResult
impl Freeze for StreamResult
impl Send for StreamResult
impl Unpin for StreamResult
impl UnsafeUnpin for StreamResult
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