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

Function createAssistant

src/stores/assistant.ts:261–271  ·  view source on GitHub ↗
(
    config: Omit<AssistantConfigFull, 'id'>
  )

Source from the content-addressed store, hash-verified

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 {

Callers

nothing calls this directly

Calls 3

useAssistantServiceFunction · 0.90
loadAssistantsFunction · 0.85
createMethod · 0.65

Tested by

no test coverage detected