(
&self,
request: SessionRequestOptions,
)
| 3449 | /// Stream a request using the long-lived object-shaped API. |
| 3450 | #[napi(js_name = "streamRequest")] |
| 3451 | pub async fn stream_request( |
| 3452 | &self, |
| 3453 | request: SessionRequestOptions, |
| 3454 | ) -> napi::Result<EventStream> { |
| 3455 | let (prompt, rust_history, rust_attachments) = |
| 3456 | session_request_parts(Either::B(request), None)?; |
| 3457 | stream_session_request(self.inner.clone(), prompt, rust_history, rust_attachments).await |
| 3458 | } |
| 3459 | |
| 3460 | /// Send a prompt with image attachments and wait for the complete response. |
| 3461 | /// |
nothing calls this directly
no test coverage detected