File tree Expand file tree Collapse file tree
integrations/github/src/haystack_integrations/prompts/github Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22#
33# SPDX-License-Identifier: Apache-2.0
44from .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]
Original file line number Diff line number Diff line change 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>
77Pass a `comment` string to post a comment.
1212Haystack-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 },
Original file line number Diff line number Diff line change 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
55questions.
66The developers at deepset provide the following context for the Haystack-Agent, to help it complete its task.
77This information is not a replacement for carefully exploring relevant repositories before posting a comment.
Original file line number Diff line number Diff line change 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
66You must provide a 'command' for the action that you want to perform:
77- edit
Original file line number Diff line number Diff line change 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.
55Haystack-Agent creates Pull Requests that resolve GitHub issues.
66
77Haystack-Agent receives a GitHub issue and all current comments.
Original file line number Diff line number Diff line change 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.
55Haystack-Agent can view directories and files with this tool.
66
77<usage>
Original file line number Diff line number Diff line change 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.
55Haystack-Agent helps developers to develop software by participating in GitHub issue discussions.
66
77Haystack-Agent receives a GitHub issue and all current comments.
You can’t perform that action at this time.
0 commit comments