Format
Template format definition
Class Diagram
Section titled “Class Diagram”---
title: Format
config:
look: handDrawn
theme: colorful
class:
hideEmptyMembersBox: true
---
classDiagram
class Format {
+string kind
+boolean strict
+dictionary options
}
Yaml Example
Section titled “Yaml Example”kind: mustachestrict: trueoptions: key: valueProperties
Section titled “Properties”| 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 |
Alternate Constructions
Section titled “Alternate Constructions”The following alternate constructions are available for Format.
These allow for simplified creation of instances using a single property.
string format
Section titled “string format”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"