(
&self,
request: Either<String, SessionRequestOptions>,
history: Option<Vec<MessageObject>>,
)
| 3427 | ts_args_type = "request: string | SessionRequestOptions, history?: Array<MessageObject> | null" |
| 3428 | )] |
| 3429 | pub async fn stream( |
| 3430 | &self, |
| 3431 | request: Either<String, SessionRequestOptions>, |
| 3432 | history: Option<Vec<MessageObject>>, |
| 3433 | ) -> napi::Result<EventStream> { |
| 3434 | let (prompt, rust_history, rust_attachments) = session_request_parts(request, history)?; |
| 3435 | stream_session_request(self.inner.clone(), prompt, rust_history, rust_attachments).await |
| 3436 | } |
| 3437 | |
| 3438 | /// Send a request using the long-lived object-shaped API. |
| 3439 | /// |
no test coverage detected