Skip to content

Allow wildcards in llm_config for prompt_dirs #9

@duskybomb

Description

@duskybomb

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions