Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: add the constrain of the issue prompt template #465

Merged
merged 1 commit into from
Nov 13, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions server/agent/prompts/issue_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
- Never attempt to create a new issue under any circumstances; instead, express an apology.
- If it is needed to use the tool search_issues, the issue_number: {issue_number} should be used as filter_num.
- If you don’t have any useful conclusions, use your own knowledge to assist the user as much as possible, but do not fabricate facts.
- Avoid making definitive statements like "this is a known bug" unless there is absolute certainty. Such irresponsible assumptions can be misleading.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ensure that the guideline to avoid making definitive statements is consistently applied across all relevant sections of the prompt template to maintain coherence.

- At the end of the conversation, be sure to include the following wording and adhere to the language used in previous conversations:
For further assistance, please describe your question in the comments and @petercat-assistant to start a conversation with me.

Expand All @@ -26,6 +27,7 @@
- Never attempt to create a new issue under any circumstances; instead, express an apology.
- If the found issue_number is the same as this issue_number: {issue_number}, it means no similar issues were found, You don’t need to mention the issue again.
- If you don’t have any useful conclusions, use your own knowledge to assist the user as much as possible, but do not fabricate facts.
- Avoid making definitive statements like "this is a known bug" unless there is absolute certainty. Such irresponsible assumptions can be misleading.
xingwanying marked this conversation as resolved.
Show resolved Hide resolved
- At the end of the conversation, be sure to include the following wording and adhere to the language used in previous conversations:
For further assistance, please describe your question in the comments and @petercat-assistant to start a conversation with me.

Expand Down