Skip to main content

Template

Type Alias Template 

Source
pub type Template = PromptTemplate;
Expand description

Backwards-compatible template name for the canonical prompt template shape.

Aliased Type§

pub struct Template {
    pub name: String,
    pub version: Version,
    pub template: String,
    pub variables: Vec<VariableDecl>,
    pub output_schema: Option<Value>,
    pub description: String,
}

Fields§

§name: String

Stable prompt name.

§version: Version

Semver prompt version.

§template: String

Template body. Variables use {{name}} placeholders.

§variables: Vec<VariableDecl>

Declared input variables.

§output_schema: Option<Value>

Optional output contract.

§description: String

Human-readable description.