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

Function resetAssistant

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

Source from the content-addressed store, hash-verified

223 }
224
225 async function resetAssistant(id: string): Promise<{ success: boolean; error?: string }> {
226 try {
227 const result = await useAssistantService().reset(id)
228 if (result.success) await loadAssistants()
229 return result
230 } catch (error) {
231 return { success: false, error: String(error) }
232 }
233 }
234
235 async function importAssistant(builtinId: string): Promise<{ success: boolean; error?: string }> {
236 try {

Callers

nothing calls this directly

Calls 3

useAssistantServiceFunction · 0.90
loadAssistantsFunction · 0.85
resetMethod · 0.65

Tested by

no test coverage detected