| 3213 | ts_args_type = "request: string | SessionRequestOptions, history?: Array<MessageObject> | null" |
| 3214 | )] |
| 3215 | pub async fn send( |
| 3216 | &self, |
| 3217 | request: Either<String, SessionRequestOptions>, |
| 3218 | history: Option<Vec<MessageObject>>, |
| 3219 | ) -> napi::Result<AgentResult> { |
| 3220 | let (prompt, rust_history, rust_attachments) = session_request_parts(request, history)?; |
| 3221 | send_session_request(self.inner.clone(), prompt, rust_history, rust_attachments).await |
| 3222 | } |
| 3223 | |
| 3224 | /// Alias for `send(...)` with a name that matches run/replay terminology. |
| 3225 | #[napi( |