ziya 0.1.30__py3-none-any.whl → 0.1.32__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of ziya might be problematic. Click here for more details.
- app/agents/prompts.py +30 -6
- pyproject.toml +1 -1
- {ziya-0.1.30.dist-info → ziya-0.1.32.dist-info}/METADATA +1 -1
- {ziya-0.1.30.dist-info → ziya-0.1.32.dist-info}/RECORD +7 -7
- {ziya-0.1.30.dist-info → ziya-0.1.32.dist-info}/LICENSE +0 -0
- {ziya-0.1.30.dist-info → ziya-0.1.32.dist-info}/WHEEL +0 -0
- {ziya-0.1.30.dist-info → ziya-0.1.32.dist-info}/entry_points.txt +0 -0
app/agents/prompts.py
CHANGED
|
@@ -3,11 +3,35 @@ from langchain_core.prompts import ChatPromptTemplate, MessagesPlaceholder
|
|
|
3
3
|
# import pydevd_pycharm
|
|
4
4
|
|
|
5
5
|
template = """
|
|
6
|
-
You are an excellent coder. Help the user with their coding tasks. You are given the codebase
|
|
7
|
-
of the user in your context.
|
|
8
6
|
|
|
9
|
-
|
|
10
|
-
|
|
7
|
+
You are an excellent coder. Help the user with their coding tasks. You are given the codebase of the user in your context.
|
|
8
|
+
|
|
9
|
+
IMPORTANT: When recommending code changes, format your response as a standard Git diff format unless the user specifies otherwise.
|
|
10
|
+
Follow these strict guidelines for diff formatting:
|
|
11
|
+
|
|
12
|
+
1. Start each diff block with ```diff (use exactly this format, no asterisks or extra characters)
|
|
13
|
+
2. For existing file modifications:
|
|
14
|
+
- Begin with diff --git a/<original_file_path> b/<new_file_path> on a new line.
|
|
15
|
+
- Use --- a/<original_file_path> to indicate the original file.
|
|
16
|
+
- Use +++ b/<new_file_path> to indicate the new file (usually the same as the original).
|
|
17
|
+
- Use @@ to indicate the line numbers being changed.
|
|
18
|
+
- Use - for lines being removed
|
|
19
|
+
- Use + for lines being added
|
|
20
|
+
3. For new file creation:
|
|
21
|
+
- Use diff --git a/dev/null b/<new_file_path> to start the diff.
|
|
22
|
+
- Use --- /dev/null to indicate a new file.
|
|
23
|
+
- Use +++ b/<new_file_path> for the new file path.
|
|
24
|
+
- Start with @@ -0,0 +1,<number_of_lines> @@ to indicate new file content.
|
|
25
|
+
- Use + for each line of the new file content.
|
|
26
|
+
4. For file deletions:
|
|
27
|
+
- Use diff --git a/<deleted_file_path> b/dev/null.
|
|
28
|
+
- Use --- a/<deleted_file_path> to indicate the original file.
|
|
29
|
+
- Use +++ /dev/null to indicate that the file is being deleted.
|
|
30
|
+
- Do not include content under the diff.
|
|
31
|
+
|
|
32
|
+
5. End each diff block with ``` on a new line
|
|
33
|
+
|
|
34
|
+
Do not include any explanatory text within the diff blocks. If you need to provide explanations or comments, do so outside the diff blocks.
|
|
11
35
|
|
|
12
36
|
The codebase is provided at the end of this prompt in a specific format.
|
|
13
37
|
The code that the user has given to you for context is in the format like below where first line has the File path and then the content follows.
|
|
@@ -25,8 +49,8 @@ Below is the current codebase of the user:
|
|
|
25
49
|
---------------------------------------
|
|
26
50
|
Codebase ends here.
|
|
27
51
|
|
|
28
|
-
|
|
29
|
-
|
|
52
|
+
Remember to strictly adhere to the Git diff format guidelines provided above when suggesting code changes.
|
|
53
|
+
|
|
30
54
|
"""
|
|
31
55
|
|
|
32
56
|
conversational_prompt = ChatPromptTemplate.from_messages(
|
pyproject.toml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
app/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
2
2
|
app/agents/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
3
3
|
app/agents/agent.py,sha256=dOUyRSaQPjSv41pH8oHbBACY6TRM9OUUabFuj4-EJnQ,3615
|
|
4
|
-
app/agents/prompts.py,sha256=
|
|
4
|
+
app/agents/prompts.py,sha256=s1gtElttFwaXCrW6FHOlvTPXbguyuZvrd1BEGmLkfhU,2785
|
|
5
5
|
app/main.py,sha256=DH-3gMO4MLwUA7RoMR6YwOTwrrbIeE3bOSyTFLkgS4w,4065
|
|
6
6
|
app/server.py,sha256=EOuQ_DqNjYmD2prB4_ttiUxVIeSxGxno76feoD0zfXM,3488
|
|
7
7
|
app/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -11,7 +11,7 @@ app/utils/langchain_validation_util.py,sha256=RgmKayKMApvUA7SPF_DrBAcYdIzzLUVJfn
|
|
|
11
11
|
app/utils/logging_utils.py,sha256=8JEcc1t7L-a0G4HLmM8zFydNNSOd5l2-gkTxviLQUns,280
|
|
12
12
|
app/utils/print_tree_util.py,sha256=O4Rb-GS8UODxfH7Z6bZGsr-opG6QLmvdaU1im5kh4IA,1419
|
|
13
13
|
app/utils/version_util.py,sha256=NcvMWIImJDcO9K5OMX6jJD4q6Zb8Y117Mu8sWIkhxEc,631
|
|
14
|
-
pyproject.toml,sha256=
|
|
14
|
+
pyproject.toml,sha256=AHKCAo23W6h-8JXVbT1OOU81ZEcwG_1QDXAjOzUAtjA,804
|
|
15
15
|
scripts.py,sha256=70BOvYoboMhl3Bxjy73m1ozmI8UV8JZVyi2RwUptkK8,809
|
|
16
16
|
templates/asset-manifest.json,sha256=UKfHq1FKhejTUZgnopTN1Z3FZjnc92z9jh0UQF9_NLc,1157
|
|
17
17
|
templates/favicon.ico,sha256=HgB8xAZdDHFK2lODUsp2H_Dds_i14pnpydx7NEJrNrU,15086
|
|
@@ -29,8 +29,8 @@ templates/static/media/fa-solid-900.4d986b00ff9ca3828fbd.woff2,sha256=rhfBavvqIW
|
|
|
29
29
|
templates/static/media/fa-solid-900.bacd5de623fb563b961a.ttf,sha256=tJkNDQxfXTjWLpNu6hIGdOWEx-6o3O44qXXAz5o3U5s,420332
|
|
30
30
|
templates/static/media/fa-v4compatibility.c8e090db312b0bea2aa2.ttf,sha256=_49SX7BQxdJFGczI9XI9hbLlHt0_m8ZUivVa663U8mk,10832
|
|
31
31
|
templates/static/media/fa-v4compatibility.cf7f5903d06b79ad60f1.woff2,sha256=x6hp-sopnRW-EKAfGdB2WnxNRtiSLZuTFyNcHkpvCYI,4792
|
|
32
|
-
ziya-0.1.
|
|
33
|
-
ziya-0.1.
|
|
34
|
-
ziya-0.1.
|
|
35
|
-
ziya-0.1.
|
|
36
|
-
ziya-0.1.
|
|
32
|
+
ziya-0.1.32.dist-info/LICENSE,sha256=8CfErGEG13yY1Z-CDlIhAQawX2KOv-QI_2Ge2z6x8SU,1064
|
|
33
|
+
ziya-0.1.32.dist-info/METADATA,sha256=uTg24LY8U9Iya6nJw0aJAxMTmz0LISL0p1eadazu6W0,2691
|
|
34
|
+
ziya-0.1.32.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
|
35
|
+
ziya-0.1.32.dist-info/entry_points.txt,sha256=6-KUolj5XXeOPVCJGTJgUL_3lDVGxG-YtK5BTvFPyBg,147
|
|
36
|
+
ziya-0.1.32.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|