ziya 0.1.30__py3-none-any.whl → 0.1.31__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 CHANGED
@@ -3,11 +3,27 @@ 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
- IMPORTANT: When recommending code changes, format your response as a git diff unless the user specifies otherwise.
10
- Do this only for code changes, like file modification and creation. For each new file recommendation, the format should start with ```diff
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 unless the user specifies otherwise.
10
+ Follow these strict guidelines for diff formatting:
11
+
12
+ 1. Start each diff block with ```diff (no asterisks or other characters before or after)
13
+ 2. For existing file modifications:
14
+ - Use --- to indicate the original file path
15
+ - Use +++ to indicate the new file path (usually the same as the original)
16
+ - Use @@ to indicate the line numbers being changed
17
+ - Use - for lines being removed
18
+ - Use + for lines being added
19
+ 3. For new file creation:
20
+ - Use --- /dev/null to indicate a new file
21
+ - Use +++ b/<new_file_path> for the new file path
22
+ - Start with @@ -0,0 +1,<number_of_lines> @@ to indicate new file content
23
+ - Use + for each line of the new file content
24
+ 4. End each diff block with ``` on a new line
25
+
26
+ 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
27
 
12
28
  The codebase is provided at the end of this prompt in a specific format.
13
29
  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 +41,8 @@ Below is the current codebase of the user:
25
41
  ---------------------------------------
26
42
  Codebase ends here.
27
43
 
28
- IMPORTANT: When recommending code changes, format your response as a git diff unless the user specifies otherwise.
29
- Do this only for code changes, like file modification and creation. For each new file recommendation, the format should start with ```diff
44
+ Remember to strictly adhere to the diff format guidelines provided above when suggesting code changes.
45
+
30
46
  """
31
47
 
32
48
  conversational_prompt = ChatPromptTemplate.from_messages(
pyproject.toml CHANGED
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "ziya"
3
- version = "0.1.30"
3
+ version = "0.1.31"
4
4
  description = ""
5
5
  authors = ["Vishnu Krishnaprasad <vishnukool@gmail.com>"]
6
6
  readme = "README.md"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: ziya
3
- Version: 0.1.30
3
+ Version: 0.1.31
4
4
  Summary:
5
5
  Author: Vishnu Krishnaprasad
6
6
  Author-email: vishnukool@gmail.com
@@ -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=NgofQR4kmG5Mq3c5A40NaDjSx2_mLiO5VenU3pU0k2w,1732
4
+ app/agents/prompts.py,sha256=5VDB_kfiFZ5PcVpGY6oLVIWOySVupCf5HCsrjmDen28,2317
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=BLfwSznjUwDt_-TxeOZeig6KGK3G-0R4MGwNRoIl0kw,804
14
+ pyproject.toml,sha256=wTme3K8eC1wHtYRIc8SiPql3_d557TiFyR7qUfwo4Fg,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.30.dist-info/LICENSE,sha256=8CfErGEG13yY1Z-CDlIhAQawX2KOv-QI_2Ge2z6x8SU,1064
33
- ziya-0.1.30.dist-info/METADATA,sha256=FH2L075sujke2s0cbj6y120YYb8LGNx4uq24XxjxAsU,2691
34
- ziya-0.1.30.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
35
- ziya-0.1.30.dist-info/entry_points.txt,sha256=6-KUolj5XXeOPVCJGTJgUL_3lDVGxG-YtK5BTvFPyBg,147
36
- ziya-0.1.30.dist-info/RECORD,,
32
+ ziya-0.1.31.dist-info/LICENSE,sha256=8CfErGEG13yY1Z-CDlIhAQawX2KOv-QI_2Ge2z6x8SU,1064
33
+ ziya-0.1.31.dist-info/METADATA,sha256=x1pNBhGiHfZWqChiLBAnBL5WDgum8yWAhUNh34DfEgY,2691
34
+ ziya-0.1.31.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
35
+ ziya-0.1.31.dist-info/entry_points.txt,sha256=6-KUolj5XXeOPVCJGTJgUL_3lDVGxG-YtK5BTvFPyBg,147
36
+ ziya-0.1.31.dist-info/RECORD,,
File without changes
File without changes