MCPcopy Index your code
hub / github.com/AI45Lab/Code / run

Method run

sdk/node/src/lib.rs:3228–3235  ·  view source on GitHub ↗
(
        &self,
        request: Either<String, SessionRequestOptions>,
        history: Option<Vec<MessageObject>>,
    )

Source from the content-addressed store, hash-verified

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 ///

Callers

nothing calls this directly

Calls 3

session_request_partsFunction · 0.85
send_session_requestFunction · 0.85
cloneMethod · 0.45

Tested by

no test coverage detected