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

Function pythonParamsTypeName

scripts/codegen/python.ts:1399–1407  ·  view source on GitHub ↗
(method: RpcMethod)

Source from the content-addressed store, hash-verified

1397}
1398
1399function pythonParamsTypeName(method: RpcMethod): string {
1400 const fallback = pythonRequestFallbackName(method);
1401 if (method.rpcMethod.startsWith("session.") && method.params?.$ref) {
1402 return fallback;
1403 }
1404 const schema = getMethodParamsSchema(method);
1405 if (schema?.$ref) return toPascalCase(refTypeName(schema.$ref, rpcDefinitions));
1406 return getRpcSchemaTypeName(schema, fallback);
1407}
1408
1409// ── Session Events ──────────────────────────────────────────────────────────
1410// ── Session Events (custom codegen — dedicated per-event payload types) ─────

Callers 5

generateRpcFunction · 0.85
emitMethodFunction · 0.85

Calls 5

refTypeNameFunction · 0.85
getRpcSchemaTypeNameFunction · 0.85
getMethodParamsSchemaFunction · 0.70
toPascalCaseFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…