Handlebars Helpers
To YAML String
Returns a YAML String for the value passed in
Uses
You can use this helper to convert an object, value, or array to a YAML string.
This is helpful when you want to pass some data to an LLM task as a YAML. You can use this inline to convert the data to a YAML string directly in prompts.
Usage
Helper name : to_yaml_string
Examples
Example use in task:
Substituted definition
OUTPUT
`number: 1 string: string boolean: true array:
- 1
- 2
- 3 obj: a: 1`