serena.prompt_factory#
Source code: serena/prompt_factory.py
- class SerenaPromptFactory[source]#
Bases:
PromptFactoryA class for retrieving and rendering prompt templates and prompt lists.
- Parameters:
prompts_dir – the directory containing the prompt templates and prompt lists. If a list is provided, will look for prompt templates in the dirs from left to right (first one containing the desired template wins).
lang_code – the language code to use for retrieving the prompt templates and prompt lists. Leave as default for single-language use cases.
fallback_mode – the fallback mode to use when a prompt template or prompt list is not found for the requested language. Irrelevant for single-language use cases.