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

Function deleteAssistant

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

Source from the content-addressed store, hash-verified

288 }
289
290 async function deleteAssistant(id: string): Promise<{ success: boolean; error?: string }> {
291 try {
292 const result = await useAssistantService().delete(id)
293 if (result.success) await loadAssistants()
294 return result
295 } catch (error) {
296 return { success: false, error: String(error) }
297 }
298 }
299
300 return {
301 assistants,

Callers

nothing calls this directly

Calls 3

useAssistantServiceFunction · 0.90
loadAssistantsFunction · 0.85
deleteMethod · 0.65

Tested by

no test coverage detected