(ctx)
| 319 | } |
| 320 | |
| 321 | function getPluginPrompts(ctx) { |
| 322 | if (!ctx.pluginLoader) return ''; |
| 323 | try { |
| 324 | const injection = ctx.pluginLoader.getPromptInjections(ctx.currentTaskType); |
| 325 | return injection ? '\n\n' + injection : ''; |
| 326 | } catch { return ''; } |
| 327 | } |
| 328 | |
| 329 | module.exports = { chatCompletion, streamFinalResponse, runValidation, buildSystemPrompt }; |
no test coverage detected