(
id: string,
updates: Partial<AssistantConfigFull>
)
| 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 { |
nothing calls this directly
no test coverage detected