Skip to content

@sqlrooms/ai / createWriteInstructionsTool

Function: createWriteInstructionsTool()

createWriteInstructionsTool(draftStore, context): Tool<{ markdown: string; }, { success: false; error: string; length?: undefined; } | { success: true; length: number; error?: undefined; }>

Parameters

ParameterType
draftStoreSkillDraftStore
contextSkillAuthoringContext

Returns

Tool<{ markdown: string; }, { success: false; error: string; length?: undefined; } | { success: true; length: number; error?: undefined; }>