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

Function parseAndNormalizeRequest

test/harness/replayingCapiProxy.ts:735–748  ·  view source on GitHub ↗
(
  requestBody: string | undefined,
  workDir: string,
  toolResultNormalizers: ToolResultNormalizer[],
)

Source from the content-addressed store, hash-verified

733}
734
735async function parseAndNormalizeRequest(
736 requestBody: string | undefined,
737 workDir: string,
738 toolResultNormalizers: ToolResultNormalizer[],
739) {
740 const fakeRequest = {
741 request: { url: chatCompletionEndpoint, body: requestBody },
742 } as CapturedExchange;
743 return await transformHttpExchanges(
744 [fakeRequest],
745 workDir,
746 toolResultNormalizers,
747 );
748}
749
750// Takes raw HTTP traffic and turns it into the normalized form that we store on disk
751async function transformHttpExchanges(

Calls 1

transformHttpExchangesFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…