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

Method send

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

Source from the content-addressed store, hash-verified

3213 ts_args_type = "request: string | SessionRequestOptions, history?: Array<MessageObject> | null"
3214 )]
3215 pub async fn send(
3216 &self,
3217 request: Either<String, SessionRequestOptions>,
3218 history: Option<Vec<MessageObject>>,
3219 ) -> napi::Result<AgentResult> {
3220 let (prompt, rust_history, rust_attachments) = session_request_parts(request, history)?;
3221 send_session_request(self.inner.clone(), prompt, rust_history, rust_attachments).await
3222 }
3223
3224 /// Alias for `send(...)` with a name that matches run/replay terminology.
3225 #[napi(

Callers 15

test.mjsFile · 0.45
send_session_requestFunction · 0.45
invokeMethod · 0.45
call_decisionMethod · 0.45
handleMethod · 0.45
executeMethod · 0.45
mainFunction · 0.45
runAllMethod · 0.45
testDefaultSearchMethod · 0.45

Calls 3

session_request_partsFunction · 0.85
send_session_requestFunction · 0.85
cloneMethod · 0.45

Tested by 10

mainFunction · 0.36
run_testFunction · 0.36
mainFunction · 0.36
mainFunction · 0.36
test_basic_chartFunction · 0.36
test_data_file_chartFunction · 0.36
test_multiple_chartsFunction · 0.36
test_explicit_skill_callFunction · 0.36
mainFunction · 0.36