Formats a document using a given prompt template.
The document to format.
The prompt template to use for formatting.
A Promise that resolves to the formatted document as a string.
If the document is missing required metadata variables specified in the prompt template.
Generated using TypeDoc
Formats a document using a given prompt template.