(name: PromptName, args: Record<string, string> | undefined)
| 88 | } |
| 89 | |
| 90 | export function getPrompt(name: PromptName, args: Record<string, string> | undefined): GetPromptResult { |
| 91 | switch (name) { |
| 92 | case 'debug_execution': |
| 93 | return getDebugExecutionPrompt(args) |
| 94 | case 'create_notebook': |
| 95 | return getCreateNotebookPrompt(args) |
| 96 | case 'convert_and_enhance': |
| 97 | return getConvertAndEnhancePrompt(args) |
| 98 | case 'fix_and_document': |
| 99 | return getFixAndDocumentPrompt(args) |
| 100 | case 'block_types_reference': |
| 101 | return getBlockTypesReferencePrompt() |
| 102 | case 'best_practices': |
| 103 | return getBestPracticesPrompt() |
| 104 | default: |
| 105 | return assertNever(name) |
| 106 | } |
| 107 | } |
| 108 | |
| 109 | function getDebugExecutionPrompt(args: Record<string, string> | undefined): GetPromptResult { |
| 110 | const notebookPath = args?.notebook_path || 'notebook.deepnote' |
no test coverage detected