Skip to content

Format

Template format definition

---
title: Format
config:
  look: handDrawn
  theme: colorful
  class:
    hideEmptyMembersBox: true
---
classDiagram
    class Format {
      
        +string kind
        +boolean strict
        +dictionary options
    }
kind: mustache
strict: true
options:
key: value
NameTypeDescription
kindstringTemplate rendering engine used for slot filling prompts (e.g., mustache, jinja2)
strictbooleanWhether the template can emit structural text for parsing output
optionsdictionaryOptions for the template engine

The following alternate constructions are available for Format. These allow for simplified creation of instances using a single property.

Simple construction with just a “kind” string

The following simplified representation can be used:

format: "example"

This is equivalent to the full representation:

format:
kind: "example"