Skip to content

@sqlrooms/ai / createSaveSkillTool

Function: createSaveSkillTool() ​

createSaveSkillTool(draftStore, context, onSave): Tool<{ rootId?: string; }, { success: false; error: string; ref?: undefined; } | { success: true; ref: SkillRef; error?: undefined; }>

Parameters ​

ParameterType
draftStoreSkillDraftStore
contextSkillAuthoringContext
onSaveSaveSkillCallback

Returns ​

Tool<{ rootId?: string; }, { success: false; error: string; ref?: undefined; } | { success: true; ref: SkillRef; error?: undefined; }>