From 566855a58de3db1ab94bc798186d1167f51cfb16 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=BC=A8=E7=BC=A8?= Date: Wed, 13 Nov 2024 17:11:34 +0800 Subject: [PATCH] chore: add the constrain of the issue prompt template (#465) --- server/agent/prompts/issue_helper.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/server/agent/prompts/issue_helper.py b/server/agent/prompts/issue_helper.py index 6f855d30..5ae64217 100644 --- a/server/agent/prompts/issue_helper.py +++ b/server/agent/prompts/issue_helper.py @@ -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. - 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. @@ -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. - 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.