PromptTemplate
class, which uses Mustache-style syntax (via the chevron
library) for variable substitution. The implementation adds type safety and validation using Pydantic or Zod schemas.
At its core, the PromptTemplate
class:
format_meta
function returns the date and author in a readable string