factor_agent.config.CampaignConfig.templates#

CampaignConfig.templates(files=None, picked_parents=None)[source]#

The prompt templates: the built-in ones, those files replace read from their files.

files are the config’s own by default, or a run snapshot’s copies. With picked parents (round.picked_parents by default) a replaced plan template must list the picked slots ({picked}).

Raises:
PromptError

With every problem of the replacing files.