MCPcopy Index your code
hub / github.com/coder/coder / GetAIBridgedHandler

Method GetAIBridgedHandler

coderd/aibridged.go:27–29  ·  view source on GitHub ↗

GetAIBridgedHandler returns the in-memory aibridge HTTP handler set by [API.RegisterInMemoryAIBridgedHTTPHandler], or nil if the daemon has not been wired in. Used by the enterprise /api/v2/aibridge route (license-gated) to forward requests into the same in-memory handler that chatd dispatches to in

()

Source from the content-addressed store, hash-verified

25// to forward requests into the same in-memory handler that chatd dispatches
26// to in-process.
27func (api *API) GetAIBridgedHandler() http.Handler {
28 return api.aibridgedHandler
29}
30
31// RegisterInMemoryAIBridgedHTTPHandler mounts [aibridged.Server]'s HTTP router onto
32// [API]'s router, so that requests to aibridged will be relayed from Coder's API server

Callers 1

aibridgeHandlerFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected