from_template(
cls,
template: str,
template_format: PromptTemplateFormat = 'f-string',
partial_variables: dictCreate a class from a string template.
A dictionary of variables that can be used to partially fill in the template.
For example, if the template is "{variable1} {variable2}", and
partial_variables is {"variable1": "foo"}, then the final prompt
will be "foo {variable2}".
Keyword arguments to pass to the constructor.