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

Method stream

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

Source from the content-addressed store, hash-verified

3427 ts_args_type = "request: string | SessionRequestOptions, history?: Array<MessageObject> | null"
3428 )]
3429 pub async fn stream(
3430 &self,
3431 request: Either<String, SessionRequestOptions>,
3432 history: Option<Vec<MessageObject>>,
3433 ) -> napi::Result<EventStream> {
3434 let (prompt, rust_history, rust_attachments) = session_request_parts(request, history)?;
3435 stream_session_request(self.inner.clone(), prompt, rust_history, rust_attachments).await
3436 }
3437
3438 /// Send a request using the long-lived object-shaped API.
3439 ///

Callers 15

runFunction · 0.45
onceFunction · 0.45
stream_session_requestFunction · 0.45
testStreamingMethod · 0.45
mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45

Calls 3

session_request_partsFunction · 0.85
stream_session_requestFunction · 0.85
cloneMethod · 0.45

Tested by

no test coverage detected