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