MCPcopy Create free account
hub / github.com/ChatLab/ChatLab / registerAdapter

Function registerAdapter

src/services/registry.ts:23–25  ·  view source on GitHub ↗
(key: string, instance: T)

Source from the content-addressed store, hash-verified

21let _initialized = false
22
23export function registerAdapter<T>(key: string, instance: T): void {
24 adapters.set(key, instance)
25}
26
27export function getRegisteredAdapter<T>(key: string): T {
28 const adapter = adapters.get(key)

Callers 3

initElectronAdaptersFunction · 0.85
initWebServeAdaptersFunction · 0.85

Calls 1

setMethod · 0.80

Tested by 1