(
&self,
request: Either<String, SessionRequestOptions>,
history: Option<Vec<MessageObject>>,
)
| 3226 | ts_args_type = "request: string | SessionRequestOptions, history?: Array<MessageObject> | null" |
| 3227 | )] |
| 3228 | pub async fn run( |
| 3229 | &self, |
| 3230 | request: Either<String, SessionRequestOptions>, |
| 3231 | history: Option<Vec<MessageObject>>, |
| 3232 | ) -> napi::Result<AgentResult> { |
| 3233 | let (prompt, rust_history, rust_attachments) = session_request_parts(request, history)?; |
| 3234 | send_session_request(self.inner.clone(), prompt, rust_history, rust_attachments).await |
| 3235 | } |
| 3236 | |
| 3237 | /// Resume a previously-checkpointed run on this session. |
| 3238 | /// |
nothing calls this directly
no test coverage detected