Class CopilotRequestHandler
java.lang.Object
com.github.copilot.CopilotRequestHandler
The base class for SDK consumers who want to observe or replace the LLM
inference requests the runtime issues (for both CAPI and BYOK providers).
When set as the requestHandler on
CopilotClientOptions, the runtime routes its
model-layer HTTP and WebSocket traffic through this handler instead of
issuing the calls itself. Subclass and override sendRequest(HttpRequest, CopilotRequestContext) to
mutate or replace HTTP calls, or openWebSocket(CopilotRequestContext) to mutate the
handshake or return a fully custom CopilotWebSocketHandler.
- Since:
- 1.0.0
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
CopilotRequestHandler
public CopilotRequestHandler()
-