-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix prompts and refactor into app and templates
- Loading branch information
1 parent
b027766
commit cbc376b
Showing
21 changed files
with
107 additions
and
134 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
dist/* | ||
*/__pycache__/* | ||
**/__pycache__/* | ||
.idea/* |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
2 changes: 1 addition & 1 deletion
2
langcontroller/templates/cli_file.jinja2 → ...templates/manage/create_manage_file.py.j2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
from commands import cli_app | ||
from app.repository import cli_app | ||
|
||
if __name__ == "__main__": | ||
cli_app() |
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
...ontroller/templates/models_file.py.jinja2 → ...templates/models/create_models_file.py.j2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
4 changes: 4 additions & 0 deletions
4
...mplates/prompt_command_with_source.jinja2 → .../prompt_templates/create_asset_file.j2.j2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,6 @@ | ||
{% raw %}{% extends "base_prompt.j2" %} | ||
|
||
{% block prompt %}{% endraw %} | ||
Create a {{ target_action }} given the following {{ source_action_human_name }}: | ||
{% raw %}{{{% endraw %} {{ source_action_underscore_name }} {% raw %}}}{% endraw %} | ||
{% raw %}{% endblock %} {% endraw %} |
6 changes: 6 additions & 0 deletions
6
langcontroller/templates/prompt_templates/create_prompt-base_file.j2.j2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
You are a Python Pydantic Model Creator. | ||
|
||
Perform the follow to create a python pydantic model: | ||
{% raw %}{% block prompt %}{% endblock %}{% endraw %} | ||
|
||
Please ensure that your implementation is clear, accurate, and comprehensive. |
5 changes: 5 additions & 0 deletions
5
langcontroller/templates/prompt_templates/create_sensor_file.j2.j2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{% raw %}{% extends "base_prompt.j2" %} | ||
|
||
{% block prompt %}{% endraw %} | ||
Create an awesome {{ target_action }} for something awesome | ||
{% raw %}{% endblock %}{% endraw %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 3 additions & 2 deletions
5
...lates/command_function_with_source.jinja2 → ...lates/repository/append_asset_class.py.j2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
Oops, something went wrong.