(
config: Omit<AssistantConfigFull, 'id'>
)
| 259 | } |
| 260 | |
| 261 | async function createAssistant( |
| 262 | config: Omit<AssistantConfigFull, 'id'> |
| 263 | ): Promise<{ success: boolean; id?: string; error?: string }> { |
| 264 | try { |
| 265 | const result = await useAssistantService().create(config) |
| 266 | if (result.success) await loadAssistants() |
| 267 | return result |
| 268 | } catch (error) { |
| 269 | return { success: false, error: String(error) } |
| 270 | } |
| 271 | } |
| 272 | |
| 273 | async function duplicateAssistant(id: string): Promise<{ success: boolean; error?: string }> { |
| 274 | try { |
nothing calls this directly
no test coverage detected