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

Function newCopilotRequestAdapter

go/copilot_request_handler.go:555–561  ·  view source on GitHub ↗
(handler *CopilotRequestHandler, getRPC func() *rpc.ServerLlmInferenceAPI)

Source from the content-addressed store, hash-verified

553}
554
555func newCopilotRequestAdapter(handler *CopilotRequestHandler, getRPC func() *rpc.ServerLlmInferenceAPI) rpc.LlmInferenceHandler {
556 return &copilotRequestAdapter{
557 handler: handler,
558 getRPC: getRPC,
559 pending: make(map[string]*pendingExchange),
560 }
561}
562
563// getOrCreateExchange returns the exchange for requestID, allocating one if it
564// does not yet exist. The runtime dispatches httpRequestStart and

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…