Skip to content
Prompty

FormatConfig

Template format definition. kind is the @dispatch discriminator for the Renderer seam, reached from a seam param as agent.template.format.kind.

---
title: FormatConfig
config:
  look: handDrawn
  theme: colorful
  class:
    hideEmptyMembersBox: true
---
classDiagram
    class FormatConfig {
        +string kind
        +boolean strict
        +dictionary options
    }
    class Jinja2Format {
        +string kind
    }
    FormatConfig <|-- Jinja2Format
    class MustacheFormat {
        +string kind
    }
    FormatConfig <|-- MustacheFormat
    class CustomFormat {
        +string kind
    }
    FormatConfig <|-- CustomFormat
kind: mustache
strict: true
options:
key: value
Name Type Description
kind string Template rendering engine used for slot filling prompts (e.g., mustache, jinja2)
strict boolean Whether the template can emit structural text for parsing output
options dictionary Options for the template engine

The following types extend FormatConfig:

The following alternate constructions are available for FormatConfig. 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"