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

Jinja2 prompt template #413

Open
abrichr opened this issue Jul 20, 2023 · 0 comments · May be fixed by #431
Open

Jinja2 prompt template #413

abrichr opened this issue Jul 20, 2023 · 0 comments · May be fixed by #431
Assignees
Labels
enhancement New feature or request

Comments

@abrichr
Copy link
Contributor

abrichr commented Jul 20, 2023

Feature request

We want to store prompts files like in https://github.com/griptape-ai/griptape/tree/main/griptape/templates/prompts, e.g. https://github.com/griptape-ai/griptape/blob/main/griptape/templates/prompts/tool.j2

We want to replace our prompts (e.g. https://github.com/OpenAdaptAI/OpenAdapt/blob/main/openadapt/strategies/stateful.py#L102) with this pattern.

Let's try to use https://github.com/griptape-ai/griptape/blob/main/griptape/utils/j2.py by either importing as dependency, or copy (include attribution at the top) if necessary

Motivation

#365

@abrichr abrichr added the enhancement New feature or request label Jul 20, 2023
@jesicasusanto jesicasusanto linked a pull request Jul 26, 2023 that will close this issue
7 tasks
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 a pull request may close this issue.

2 participants