function promptTemplateFigure(host) { ensureStyles(); var shell = document.createElement('div'); shell.className = 'mf-shell'; shell.innerHTML = [ '
Prompt Template and Completion arguments fill a template; context narrows suggestions
', '
', '', '', '', 'prompts/get renders a template', '', 'text: {language} snippet,', 'follow {framework} style', '', '', 'language: python', 'framework: flask', '', '', 'rendered: python snippet,', 'follow flask style', 'completion narrows with context', '', 'framework "fa", no context:', 'falcon, fastapi, fastify', '', '+ context', '', 'language: python', 'narrows to: falcon, fastapi', '3 matches narrow to 2', '', '
', '
A prompt argument fills its placeholder to render PromptMessage content. completion/complete ranks suggestions for one argument, and narrows them further once context.arguments carries an answer already given, such as the chosen language.
' ].join(''); host.appendChild(shell); } // register as: mcpa-13-prompt-template