All sections of the prompt's documentation that refer to using YAML prompt templates include the following line of code:
prompt_template_config = PromptTemplateConfig.from_yaml(yaml_content)
Nevertheless, the method does not exist in PromptTemplateConfig.
It seems like the expected method for managing prompts is the use of JSON files and a separate template, at least from the examples, but this is not shown or explained anywhere in the documentation.