MCPcopy Create free account
hub / github.com/github/copilot-sdk / setContext

Method setContext

nodejs/src/copilotRequestHandler.ts:479–485  ·  view source on GitHub ↗

Fill in the request context once the matching start frame arrives.

(params: LlmInferenceHttpRequestStartRequest)

Source from the content-addressed store, hash-verified

477
478 /** Fill in the request context once the matching start frame arrives. */
479 setContext(params: LlmInferenceHttpRequestStartRequest): void {
480 this.sessionId = params.sessionId;
481 this.method = params.method;
482 this.url = params.url;
483 this.headers = params.headers;
484 this.transport = params.transport ?? "http";
485 }
486
487 get signal(): AbortSignal {
488 return this.#abort.signal;

Callers 1

httpRequestStartFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected