MCPcopy
hub / github.com/simstudioai/sim / initializeProviders

Function initializeProviders

apps/sim/providers/registry.ts:63–76  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

61}
62
63export async function initializeProviders(): Promise<void> {
64 for (const [id, provider] of Object.entries(providerRegistry)) {
65 if (provider.initialize) {
66 try {
67 await provider.initialize()
68 logger.info(`Initialized provider: ${id}`)
69 } catch (error) {
70 logger.error(`Failed to initialize ${id} provider`, {
71 error: getErrorMessage(error, 'Unknown error'),
72 })
73 }
74 }
75 }
76}

Callers

nothing calls this directly

Calls 4

getErrorMessageFunction · 0.90
infoMethod · 0.80
errorMethod · 0.80
initializeMethod · 0.65

Tested by

no test coverage detected