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

Function importAssistant

src/stores/assistant.ts:235–246  ·  view source on GitHub ↗
(builtinId: string)

Source from the content-addressed store, hash-verified

233 }
234
235 async function importAssistant(builtinId: string): Promise<{ success: boolean; error?: string }> {
236 try {
237 const result = await useAssistantService().importBuiltin(builtinId)
238 if (result.success) {
239 await loadAssistants()
240 await loadBuiltinCatalog()
241 }
242 return result
243 } catch (error) {
244 return { success: false, error: String(error) }
245 }
246 }
247
248 async function reimportAssistant(id: string): Promise<{ success: boolean; error?: string }> {
249 try {

Callers

nothing calls this directly

Calls 4

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

Tested by

no test coverage detected