Skip to content

Commit ea95934

Browse files
committed
all caps for prompts
1 parent 380c212 commit ea95934

7 files changed

Lines changed: 14 additions & 14 deletions

File tree

integrations/github/src/haystack_integrations/prompts/github/__init__.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,18 @@
22
#
33
# SPDX-License-Identifier: Apache-2.0
44
from .comment_tool import comment_prompt, comment_schema
5-
from .file_editor_tool import file_editor_prompt, file_editor_schema
6-
from .pr_system_prompt import system_prompt as pr_system_prompt
7-
from .repo_viewer_tool import repo_viewer_prompt, repo_viewer_schema
8-
from .system_prompt import issue_prompt
5+
from .file_editor_tool import FILE_EDITOR_PROMPT, file_editor_schema
6+
from .pr_system_prompt import SYSTEM_PROMPT as pr_system_prompt
7+
from .repo_viewer_tool import REPO_VIEWER_PROMPT, repo_viewer_schema
8+
from .system_prompt import ISSUE_PROMPT
99

1010
__all__ = [
1111
"comment_prompt",
1212
"comment_schema",
13-
"file_editor_prompt",
13+
"FILE_EDITOR_PROMPT",
1414
"file_editor_schema",
15-
"issue_prompt",
15+
"ISSUE_PROMPT",
1616
"pr_system_prompt",
17-
"repo_viewer_prompt",
17+
"REPO_VIEWER_PROMPT",
1818
"repo_viewer_schema",
1919
]

integrations/github/src/haystack_integrations/prompts/github/comment_tool.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# SPDX-FileCopyrightText: 2023-present deepset GmbH <info@deepset.ai>
22
#
33
# SPDX-License-Identifier: Apache-2.0
4-
comment_prompt = """Haystack-Agent uses this tool to post a comment to a GitHub-issue discussion.
4+
COMMENT_PROMPT = """Haystack-Agent uses this tool to post a comment to a GitHub-issue discussion.
55
66
<usage>
77
Pass a `comment` string to post a comment.
@@ -12,7 +12,7 @@
1212
Haystack-Agent always passes the contents of the comment to the "comment" parameter when calling this tool.
1313
"""
1414

15-
comment_schema = {
15+
COMMENT_SCHEMA = {
1616
"properties": {
1717
"comment": {"type": "string", "description": "The contents of the comment that you want to create."}
1818
},

integrations/github/src/haystack_integrations/prompts/github/context.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# SPDX-FileCopyrightText: 2023-present deepset GmbH <info@deepset.ai>
22
#
33
# SPDX-License-Identifier: Apache-2.0
4-
haystack_context_prompt = """Haystack-Agent was specifically designed to help developers with the Haystack-framework and any Haystack related
4+
CONTEXT_PROMPT = """Haystack-Agent was specifically designed to help developers with the Haystack-framework and any Haystack related
55
questions.
66
The developers at deepset provide the following context for the Haystack-Agent, to help it complete its task.
77
This information is not a replacement for carefully exploring relevant repositories before posting a comment.

integrations/github/src/haystack_integrations/prompts/github/file_editor_tool.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# SPDX-FileCopyrightText: 2023-present deepset GmbH <info@deepset.ai>
22
#
33
# SPDX-License-Identifier: Apache-2.0
4-
file_editor_prompt = """Use the file editor to edit an existing file in the repository.
4+
FILE_EDITOR_PROMPT = """Use the file editor to edit an existing file in the repository.
55
66
You must provide a 'command' for the action that you want to perform:
77
- edit

integrations/github/src/haystack_integrations/prompts/github/pr_system_prompt.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# SPDX-FileCopyrightText: 2023-present deepset GmbH <info@deepset.ai>
22
#
33
# SPDX-License-Identifier: Apache-2.0
4-
system_prompt = """The assistant is Haystack-Agent, created by deepset.
4+
SYSTEM_PROMPT = """The assistant is Haystack-Agent, created by deepset.
55
Haystack-Agent creates Pull Requests that resolve GitHub issues.
66
77
Haystack-Agent receives a GitHub issue and all current comments.

integrations/github/src/haystack_integrations/prompts/github/repo_viewer_tool.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# SPDX-FileCopyrightText: 2023-present deepset GmbH <info@deepset.ai>
22
#
33
# SPDX-License-Identifier: Apache-2.0
4-
repo_viewer_prompt = """Haystack-Agent uses this tool to browse GitHub repositories.
4+
REPO_VIEWER_PROMPT = """Haystack-Agent uses this tool to browse GitHub repositories.
55
Haystack-Agent can view directories and files with this tool.
66
77
<usage>

integrations/github/src/haystack_integrations/prompts/github/system_prompt.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# SPDX-FileCopyrightText: 2023-present deepset GmbH <info@deepset.ai>
22
#
33
# SPDX-License-Identifier: Apache-2.0
4-
issue_prompt = """The assistant is Haystack-Agent, created by deepset.
4+
ISSUE_PROMPT = """The assistant is Haystack-Agent, created by deepset.
55
Haystack-Agent helps developers to develop software by participating in GitHub issue discussions.
66
77
Haystack-Agent receives a GitHub issue and all current comments.

0 commit comments

Comments
 (0)