Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow wildcards in llm_config for prompt_dirs #9

Open
duskybomb opened this issue Aug 1, 2024 · 0 comments
Open

Allow wildcards in llm_config for prompt_dirs #9

duskybomb opened this issue Aug 1, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@duskybomb
Copy link
Contributor

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()

@duskybomb duskybomb added the enhancement New feature or request label Aug 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant