ziya 0.1.30__tar.gz → 0.1.32__tar.gz

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.

Files changed (35) hide show
  1. {ziya-0.1.30 → ziya-0.1.32}/PKG-INFO +1 -1
  2. ziya-0.1.32/app/agents/prompts.py +69 -0
  3. {ziya-0.1.30 → ziya-0.1.32}/pyproject.toml +1 -1
  4. ziya-0.1.30/app/agents/prompts.py +0 -45
  5. {ziya-0.1.30 → ziya-0.1.32}/LICENSE +0 -0
  6. {ziya-0.1.30 → ziya-0.1.32}/README.md +0 -0
  7. {ziya-0.1.30 → ziya-0.1.32}/app/__init__.py +0 -0
  8. {ziya-0.1.30 → ziya-0.1.32}/app/agents/__init__.py +0 -0
  9. {ziya-0.1.30 → ziya-0.1.32}/app/agents/agent.py +0 -0
  10. {ziya-0.1.30 → ziya-0.1.32}/app/main.py +0 -0
  11. {ziya-0.1.30 → ziya-0.1.32}/app/server.py +0 -0
  12. {ziya-0.1.30 → ziya-0.1.32}/app/utils/__init__.py +0 -0
  13. {ziya-0.1.30 → ziya-0.1.32}/app/utils/directory_util.py +0 -0
  14. {ziya-0.1.30 → ziya-0.1.32}/app/utils/gitignore_parser.py +0 -0
  15. {ziya-0.1.30 → ziya-0.1.32}/app/utils/langchain_validation_util.py +0 -0
  16. {ziya-0.1.30 → ziya-0.1.32}/app/utils/logging_utils.py +0 -0
  17. {ziya-0.1.30 → ziya-0.1.32}/app/utils/print_tree_util.py +0 -0
  18. {ziya-0.1.30 → ziya-0.1.32}/app/utils/version_util.py +0 -0
  19. {ziya-0.1.30 → ziya-0.1.32}/scripts.py +0 -0
  20. {ziya-0.1.30 → ziya-0.1.32}/templates/asset-manifest.json +0 -0
  21. {ziya-0.1.30 → ziya-0.1.32}/templates/favicon.ico +0 -0
  22. {ziya-0.1.30 → ziya-0.1.32}/templates/index.html +0 -0
  23. {ziya-0.1.30 → ziya-0.1.32}/templates/static/css/main.8af23da0.css +0 -0
  24. {ziya-0.1.30 → ziya-0.1.32}/templates/static/css/main.8af23da0.css.map +0 -0
  25. {ziya-0.1.30 → ziya-0.1.32}/templates/static/js/main.69f6f0d1.js +0 -0
  26. {ziya-0.1.30 → ziya-0.1.32}/templates/static/js/main.69f6f0d1.js.LICENSE.txt +0 -0
  27. {ziya-0.1.30 → ziya-0.1.32}/templates/static/js/main.69f6f0d1.js.map +0 -0
  28. {ziya-0.1.30 → ziya-0.1.32}/templates/static/media/fa-brands-400.455ea818179b4def0c43.woff2 +0 -0
  29. {ziya-0.1.30 → ziya-0.1.32}/templates/static/media/fa-brands-400.60127e352b7a11f7f1bc.ttf +0 -0
  30. {ziya-0.1.30 → ziya-0.1.32}/templates/static/media/fa-regular-400.21cb8f55d8e0c5b89751.woff2 +0 -0
  31. {ziya-0.1.30 → ziya-0.1.32}/templates/static/media/fa-regular-400.eb91f7b948a42799f678.ttf +0 -0
  32. {ziya-0.1.30 → ziya-0.1.32}/templates/static/media/fa-solid-900.4d986b00ff9ca3828fbd.woff2 +0 -0
  33. {ziya-0.1.30 → ziya-0.1.32}/templates/static/media/fa-solid-900.bacd5de623fb563b961a.ttf +0 -0
  34. {ziya-0.1.30 → ziya-0.1.32}/templates/static/media/fa-v4compatibility.c8e090db312b0bea2aa2.ttf +0 -0
  35. {ziya-0.1.30 → ziya-0.1.32}/templates/static/media/fa-v4compatibility.cf7f5903d06b79ad60f1.woff2 +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: ziya
3
- Version: 0.1.30
3
+ Version: 0.1.32
4
4
  Summary:
5
5
  Author: Vishnu Krishnaprasad
6
6
  Author-email: vishnukool@gmail.com
@@ -0,0 +1,69 @@
1
+ from langchain_core.agents import AgentFinish
2
+ from langchain_core.prompts import ChatPromptTemplate, MessagesPlaceholder
3
+ # import pydevd_pycharm
4
+
5
+ template = """
6
+
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.
35
+
36
+ The codebase is provided at the end of this prompt in a specific format.
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.
38
+ Each file starts with "File: <filepath>" followed by its content on subsequent lines.
39
+
40
+ File: <filepath>
41
+ <Content of the file>.
42
+
43
+ Below is the current codebase of the user:
44
+
45
+ ---------------------------------------
46
+
47
+ {codebase}
48
+
49
+ ---------------------------------------
50
+ Codebase ends here.
51
+
52
+ Remember to strictly adhere to the Git diff format guidelines provided above when suggesting code changes.
53
+
54
+ """
55
+
56
+ conversational_prompt = ChatPromptTemplate.from_messages(
57
+ [
58
+ ("system", template),
59
+ # ("system", "You are a helpful AI bot. Your name is {name}."),
60
+ MessagesPlaceholder(variable_name="chat_history"),
61
+ ("user", "{question}"),
62
+ ("ai", "{agent_scratchpad}"),
63
+ ]
64
+ )
65
+
66
+
67
+ def parse_output(message):
68
+ text = message.content
69
+ return AgentFinish(return_values={"output": text}, log=text)
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "ziya"
3
- version = "0.1.30"
3
+ version = "0.1.32"
4
4
  description = ""
5
5
  authors = ["Vishnu Krishnaprasad <vishnukool@gmail.com>"]
6
6
  readme = "README.md"
@@ -1,45 +0,0 @@
1
- from langchain_core.agents import AgentFinish
2
- from langchain_core.prompts import ChatPromptTemplate, MessagesPlaceholder
3
- # import pydevd_pycharm
4
-
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
-
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
11
-
12
- The codebase is provided at the end of this prompt in a specific format.
13
- 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.
14
- Each file starts with "File: <filepath>" followed by its content on subsequent lines.
15
-
16
- File: <filepath>
17
- <Content of the file>.
18
-
19
- Below is the current codebase of the user:
20
-
21
- ---------------------------------------
22
-
23
- {codebase}
24
-
25
- ---------------------------------------
26
- Codebase ends here.
27
-
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
30
- """
31
-
32
- conversational_prompt = ChatPromptTemplate.from_messages(
33
- [
34
- ("system", template),
35
- # ("system", "You are a helpful AI bot. Your name is {name}."),
36
- MessagesPlaceholder(variable_name="chat_history"),
37
- ("user", "{question}"),
38
- ("ai", "{agent_scratchpad}"),
39
- ]
40
- )
41
-
42
-
43
- def parse_output(message):
44
- text = message.content
45
- return AgentFinish(return_values={"output": text}, log=text)
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes