withSystemPromptTemplate

fun withSystemPromptTemplate(templateName: String, model: Map<String, Any> = emptyMap()): PromptRunner

Render the named template with the given model and return a runner carrying the rendered text as its system prompt.

Return

a runner with the rendered system prompt applied

Parameters

templateName

the name of the template to load and render

model

the model data to use for template rendering. Defaults to the empty map (which is appropriate for static templates)