change routing & add team info for quick question

This commit is contained in:
garylin2099 2024-07-19 00:17:33 +08:00
parent 37fcd66cbc
commit 5e5dc66cc1
5 changed files with 143 additions and 12 deletions

View file

@ -65,7 +65,8 @@ Help check if there are any formatting issues with the JSON data? If so, please
QUICK_THINK_PROMPT = """
Decide if the latest user message is a quick question.
Quick questions include common-sense, logical, math questions, greetings, or casual chat that you can answer directly, excluding software development tasks.
Respond with "#YES#, (then start your actual response to the question...)" if so, otherwise, simply respond with "#NO#".
Your response:
Quick questions include common-sense, logical, math, multiple-choice questions, greetings, or casual chat that you can answer directly.
Questions about you or your team info are also quick questions.
Programming or software development tasks are NOT quick questions except for filling a single function or class.
Respond with YES if so, otherwise, NO. Your response:
"""

View file

@ -24,6 +24,13 @@ Note:
7. If the requirement is writing a TRD and software framework, you should assign it to Architect. When publishing message to Architect, you should directly copy the full original user requirement.
"""
QUICK_THINK_SYSTEM_PROMPT = """
{role_info}
Your team member:
{team_info}
However, you MUST respond to the user message by yourself directly, DON'T ask your team members.
"""
FINISH_CURRENT_TASK_CMD = """
```json
[