Expand description
Prompt templates with variable substitution and few-shot examples. Prompt templates with variable substitution and few-shot examples.
A PromptTemplate bundles a {{variable}}-substituted body with optional
few-shot example strings rendered before the body. Substitution reuses
crate::llm::prompt::render_prompt, so missing variables are left as-is.
Structs§
- Prompt
Template - A prompt template with optional few-shot examples.