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

Method stream_request

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

Source from the content-addressed store, hash-verified

3449 /// Stream a request using the long-lived object-shaped API.
3450 #[napi(js_name = "streamRequest")]
3451 pub async fn stream_request(
3452 &self,
3453 request: SessionRequestOptions,
3454 ) -> napi::Result<EventStream> {
3455 let (prompt, rust_history, rust_attachments) =
3456 session_request_parts(Either::B(request), None)?;
3457 stream_session_request(self.inner.clone(), prompt, rust_history, rust_attachments).await
3458 }
3459
3460 /// Send a prompt with image attachments and wait for the complete response.
3461 ///

Callers

nothing calls this directly

Calls 3

session_request_partsFunction · 0.85
stream_session_requestFunction · 0.85
cloneMethod · 0.45

Tested by

no test coverage detected