chainlite
chainlite copied to clipboard
Allow wildcards in llm_config for prompt_dirs
I have multiple agents, and all of them have some agent-specific prompts. The prompts are present inside an agent-specific dir. Like this:
- agent_1/
- some_file.py
- prompts/
- agent_2/
- some_file.py
- prompts/
It would be nice to be able to use wildcard (*) in the llm_config.yaml
like this:
prompt_dirs: # List of directories containing prompt files, relative to the location of this file
- "./my_lib/prompts/"
- "./tests/"
- "./my_lib/agents/*/prompts/"
This could be implemented modifying L85 in llm_config.py
using glob()