MCPcopy
hub / github.com/Doorman11991/smallcode / getPluginPrompts

Function getPluginPrompts

bin/model_client.js:321–327  ·  view source on GitHub ↗
(ctx)

Source from the content-addressed store, hash-verified

319}
320
321function 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
329module.exports = { chatCompletion, streamFinalResponse, runValidation, buildSystemPrompt };

Callers 1

buildSystemPromptFunction · 0.70

Calls 1

getPromptInjectionsMethod · 0.80

Tested by

no test coverage detected