MCPcopy Index your code
hub / github.com/ChatLab/ChatLab / getRegisteredAdapter

Function getRegisteredAdapter

src/services/registry.ts:27–33  ·  view source on GitHub ↗
(key: string)

Source from the content-addressed store, hash-verified

25}
26
27export function getRegisteredAdapter<T>(key: string): T {
28 const adapter = adapters.get(key)
29 if (!adapter) {
30 throw new Error(`[services] Adapter "${key}" not registered. Call initServices() first.`)
31 }
32 return adapter as T
33}
34
35export function isInitialized(): boolean {
36 return _initialized

Callers 13

useCacheServiceFunction · 0.90
useLLMServiceFunction · 0.90
usePreferencesServiceFunction · 0.90
useDataServiceFunction · 0.90
useImportServiceFunction · 0.90
useSkillServiceFunction · 0.90
useAIServiceFunction · 0.90
usePlatformServiceFunction · 0.90
useSessionIndexServiceFunction · 0.90
getDataAdapterFunction · 0.90
useMessageServiceFunction · 0.90
getDataAdapterFunction · 0.90

Calls 1

getMethod · 0.65

Tested by

no test coverage detected