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

Function reimportAssistant

src/stores/assistant.ts:248–259  ·  view source on GitHub ↗
(id: string)

Source from the content-addressed store, hash-verified

246 }
247
248 async function reimportAssistant(id: string): Promise<{ success: boolean; error?: string }> {
249 try {
250 const result = await useAssistantService().reimport(id)
251 if (result.success) {
252 await loadAssistants()
253 await loadBuiltinCatalog()
254 }
255 return result
256 } catch (error) {
257 return { success: false, error: String(error) }
258 }
259 }
260
261 async function createAssistant(
262 config: Omit<AssistantConfigFull, 'id'>

Callers

nothing calls this directly

Calls 4

useAssistantServiceFunction · 0.90
loadAssistantsFunction · 0.85
loadBuiltinCatalogFunction · 0.70
reimportMethod · 0.65

Tested by

no test coverage detected