Prompts

class PromptTemplate

Prompt Template.

Parameters:

template (str) – Prompt template string.

Example

from beekeeper.core.prompts import PromptTemplate

PromptTemplate("Summarize the following text: {input_text}")
format(**kwargs)

Formats the template using the provided dynamic variables. Missing variables are left as placeholders.