Parser
Template parser definition
Class Diagram
Section titled “Class Diagram”---
title: Parser
config:
look: handDrawn
theme: colorful
class:
hideEmptyMembersBox: true
---
classDiagram
class Parser {
+string kind
+dictionary options
}
Yaml Example
Section titled “Yaml Example”kind: promptyoptions: key: valueProperties
Section titled “Properties”| Name | Type | Description |
|---|---|---|
| kind | string | Parser used to process the rendered template into API-compatible format |
| options | dictionary | Options for the parser |
Alternate Constructions
Section titled “Alternate Constructions”The following alternate constructions are available for Parser.
These allow for simplified creation of instances using a single property.
string parser
Section titled “string parser”Simple construction with just a “kind” string
The following simplified representation can be used:
parser: "example"This is equivalent to the full representation:
parser: kind: "example"