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

Method send_request

sdk/node/src/lib.rs:3443–3447  ·  view source on GitHub ↗
(&self, request: SessionRequestOptions)

Source from the content-addressed store, hash-verified

3441 /// attachments, or future request options.
3442 #[napi(js_name = "sendRequest")]
3443 pub async fn send_request(&self, request: SessionRequestOptions) -> napi::Result<AgentResult> {
3444 let (prompt, rust_history, rust_attachments) =
3445 session_request_parts(Either::B(request), None)?;
3446 send_session_request(self.inner.clone(), prompt, rust_history, rust_attachments).await
3447 }
3448
3449 /// Stream a request using the long-lived object-shaped API.
3450 #[napi(js_name = "streamRequest")]

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