factor_agent.prompts.Templates.load#

classmethod Templates.load(replaced, picked=False)[source]#

The built-in templates with those of replaced (template name to file) read from their files.

With picked (the round has Picked parents) a replaced plan template must use {picked}, the picked slots, which it may otherwise leave out.

Raises:
PromptError

Naming every unknown template, unreadable file, malformed template, and placeholder a template lacks or may not use.