MCPcopy Index your code
hub / github.com/github/copilot-sdk / emitRequestCall

Function emitRequestCall

scripts/codegen/python.ts:3540–3552  ·  view source on GitHub ↗
(paramsExpr: string)

Source from the content-addressed store, hash-verified

3538
3539 // Build request body with proper serialization/deserialization
3540 const emitRequestCall = (paramsExpr: string) => {
3541 const callExpr = `await self._client.request("${method.rpcMethod}", ${paramsExpr}, **_timeout_kwargs(timeout))`;
3542 if (hasResult || hasNullableResult) {
3543 if (hasNullableResult) {
3544 lines.push(` _result = ${callExpr}`);
3545 lines.push(` return ${deserialize("_result")}`);
3546 } else {
3547 lines.push(` return ${deserialize(callExpr)}`);
3548 }
3549 } else {
3550 lines.push(` ${callExpr}`);
3551 }
3552 };
3553
3554 if (isSession) {
3555 if (hasParams) {

Callers 1

emitMethodFunction · 0.85

Calls 2

deserializeFunction · 0.85
pushMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…