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

Function updateAssistant

src/stores/assistant.ts:212–223  ·  view source on GitHub ↗
(
    id: string,
    updates: Partial<AssistantConfigFull>
  )

Source from the content-addressed store, hash-verified

210 }
211
212 async function updateAssistant(
213 id: string,
214 updates: Partial<AssistantConfigFull>
215 ): Promise<{ success: boolean; error?: string }> {
216 try {
217 const result = await useAssistantService().update(id, updates)
218 if (result.success) await loadAssistants()
219 return result
220 } catch (error) {
221 return { success: false, error: String(error) }
222 }
223 }
224
225 async function resetAssistant(id: string): Promise<{ success: boolean; error?: string }> {
226 try {

Callers

nothing calls this directly

Calls 3

useAssistantServiceFunction · 0.90
loadAssistantsFunction · 0.85
updateMethod · 0.65

Tested by

no test coverage detected