Template Operations
class TemplateOperations(templateName: String, templateRenderer: <Error class: unknown class>, promptRunnerOperations: PromptRunnerOperations)
Llm operations based on a compiled template. Similar to PromptRunnerOperations, but taking a model instead of a template string. Template names will be resolved by the com.embabel.common.textio.template.TemplateRenderer provided.
Constructors
Link copied to clipboard
constructor(templateName: String, templateRenderer: <Error class: unknown class>, promptRunnerOperations: PromptRunnerOperations)
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun respondWithSystemPrompt(conversation: Conversation, model: Map<String, Any> = emptyMap(), interactionId: String? = null): AssistantMessage
Respond in the conversation using the rendered template as system prompt.