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

Initial version of prompt manager #3

Merged
merged 11 commits into from
Oct 21, 2024
Merged

Conversation

dazfuller
Copy link
Contributor

This adds in an initial version of the prompt manager to allow users to load all prompts under a given location

Introduced the PromptManager class to manage and load .prompt files from specified directories. Added new test cases and prompt files to verify proper loading and name cleaning, ensuring robustness in file handling.
Handle duplicate prompt file names in PromptManager

This change ensures that the PromptManager throws an exception if it encounters duplicate prompt file names during initialisation. New test cases have been added to cover this scenario and confirm proper exception handling.
```
Changed "maxOutputTokens" to "maxTokens" for consistency with internal configuration naming conventions. This ensures the documentation aligns with the actual config file structure.
@dazfuller dazfuller added the enhancement New feature or request label Oct 18, 2024
@dazfuller dazfuller self-assigned this Oct 18, 2024
Copy link

codecov bot commented Oct 21, 2024

Welcome to Codecov 🎉

Once you merge this PR into your default branch, you're all set! Codecov will compare coverage reports and display results in all future pull requests.

Thanks for integrating Codecov - We've got you covered ☂️

@dazfuller dazfuller merged commit 82d6a5b into main Oct 21, 2024
4 checks passed
@dazfuller dazfuller deleted the dazfuller/prompt-manager branch October 21, 2024 09:56
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

Successfully merging this pull request may close these issues.

1 participant