Expand description
Prompt Template — type-safe system prompt construction.
PromptTemplate replaces System(String) in MessageContent to prevent
user data from being smuggled through the system prompt escape hatch.
A PromptTemplate can only be built from:
&'static strliterals (known at compile time)ScrubbedText(already through PII redaction)
There is no path from an arbitrary String into a PromptTemplate.
Structs§
- Prompt
Template - A system prompt built from static templates + pre-scrubbed inserts.
- Prompt
Template Builder - Builder for
PromptTemplate.
Enums§
- Prompt
Segment - A single segment of a prompt template.