Skip to main content

render_generation_prompt

Function render_generation_prompt 

Source
pub fn render_generation_prompt(
    context: &GenerateSkillResult,
) -> Result<String, TemplateError>
Expand description

Render the skill generation prompt.

Takes the GenerateSkillResult context and renders it using the embedded Handlebars template.

§Arguments

  • context - Skill generation context from build_skill_context

§Returns

Rendered prompt string for the LLM.

§Errors

Returns TemplateError if template rendering fails.

§Examples

use mcp_execution_skill::{build_skill_context, render_generation_prompt};

let context = build_skill_context("github", &[], None);
let prompt = render_generation_prompt(&context).unwrap();