-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Add GPT5Mini final_answer and preamble instructions #1358
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
base: main
Are you sure you want to change the base?
Add GPT5Mini final_answer and preamble instructions #1358
Conversation
…t prompt instructionMessage.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
Adds two new conditional instruction blocks (final_answer_instructions and preamble_instructions) to the DefaultAgentPrompt, shown only when isGpt5Mini is true. These define formatting expectations for final answers and preamble style between tool calls.
- Adds final answer formatting guidelines (structure, data presentation, readability).
- Adds detailed preamble behavior rules (cadence, voice, templates, do/don't).
- Injects both blocks after the existing outputFormatting-related section behind isGpt5Mini conditional.
<br /> | ||
CADENCE<br /> | ||
- You MUST preface each tool call batch.<br /> | ||
- In the first premable message, It is better that you send one or two friendly greeting sentences acknowledging the request + stating the immediate action. (Optional).<br /> |
Copilot
AI
Oct 15, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Correct spelling: 'premable' -> 'preamble'. Also the capital 'It' mid‑sentence should be lowercase for grammatical consistency.
- In the first premable message, It is better that you send one or two friendly greeting sentences acknowledging the request + stating the immediate action. (Optional).<br /> | |
- In the first preamble message, it is better that you send one or two friendly greeting sentences acknowledging the request + stating the immediate action. (Optional).<br /> |
Copilot uses AI. Check for mistakes.
CONTENT FOCUS<br /> | ||
- Emphasize **what you discovered** and **what you'll do next**. Minimize narration of actions or tool mechanics.<br /> | ||
- If there's **no finding yet**, write **one short sentence** stating your next action only.<br /> | ||
- When you have a **clear finding**, begin enthusiastically (e.g., "Perfect! I found …", "Great! The cause is …", "Nice! I see the issue is …" ). Keep it to **2 sentences**. (enthusiastical word like "Perfect!" is not counted as a sentence)<br /> |
Copilot
AI
Oct 15, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Correct spelling: 'enthusiastical' should be 'enthusiastic'.
- When you have a **clear finding**, begin enthusiastically (e.g., "Perfect! I found …", "Great! The cause is …", "Nice! I see the issue is …" ). Keep it to **2 sentences**. (enthusiastical word like "Perfect!" is not counted as a sentence)<br /> | |
- When you have a **clear finding**, begin enthusiastically (e.g., "Perfect! I found …", "Great! The cause is …", "Nice! I see the issue is …" ). Keep it to **2 sentences**. (enthusiastic word like "Perfect!" is not counted as a sentence)<br /> |
Copilot uses AI. Check for mistakes.
Always prefer a short and concise answer without extending too much.<br /> | ||
</Tag> | ||
<Tag name='preamble_instructions'> | ||
The preamble your write should follow these guidelines. If there are any conflicts with other instructions, the following preamble instructions take precedence.<br /> |
Copilot
AI
Oct 15, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Grammatical correction: 'your' should be 'you' ('The preamble you write...').
The preamble your write should follow these guidelines. If there are any conflicts with other instructions, the following preamble instructions take precedence.<br /> | |
The preamble you write should follow these guidelines. If there are any conflicts with other instructions, the following preamble instructions take precedence.<br /> |
Copilot uses AI. Check for mistakes.
<br /> | ||
VOICE & OPENINGS<br /> | ||
- Keep it brief, factual, specific, and confident.<br /> | ||
- Prefer varied openings; if you used "I'll" or "I will" recently, in the next preamble, you MUST use a different opening. In every 5 preambles window, the opening MUST be different.<br /> |
Copilot
AI
Oct 15, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[nitpick] Phrase 'In every 5 preambles window' is unclear/awkward; consider 'Within any window of 5 preambles, the opening MUST differ' for clarity on the constraint.
- Prefer varied openings; if you used "I'll" or "I will" recently, in the next preamble, you MUST use a different opening. In every 5 preambles window, the opening MUST be different.<br /> | |
- Prefer varied openings; if you used "I'll" or "I will" recently, in the next preamble, you MUST use a different opening. Within any window of 5 preambles, the opening MUST differ.<br /> |
Copilot uses AI. Check for mistakes.
<br /> | ||
DON'T<br /> | ||
- Don't over-explain or speculate.<br /> | ||
- Don't use repeated openings like "I will" or "Proceeding to" in 5 preambles windows (IMPORTANT!).<br /> |
Copilot
AI
Oct 15, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[nitpick] Phrase 'in 5 preambles windows' is grammatically incorrect; suggest 'within a 5‑preamble window' or 'within any set of 5 consecutive preambles'.
- Don't use repeated openings like "I will" or "Proceeding to" in 5 preambles windows (IMPORTANT!).<br /> | |
- Don't use repeated openings like "I will" or "Proceeding to" within a 5‑preamble window (IMPORTANT!).<br /> |
Copilot uses AI. Check for mistakes.
<Tag name='final_answer_instructions'> | ||
In your final answer, use clear headings, highlights, and Markdown formatting. When referencing a filename or a symbol in the user's workspace, wrap it in backticks.<br /> | ||
Always format your responses using clear, professional markdown to enhance readability:<br /> |
Copilot
AI
Oct 15, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[nitpick] These large static instruction blocks inline the full text, making the component harder to scan. Consider extracting each into dedicated React components or external markdown/template constants (e.g., and ) to reduce file size and improve reuse.
Copilot uses AI. Check for mistakes.
<Tag name='preamble_instructions'> | ||
The preamble your write should follow these guidelines. If there are any conflicts with other instructions, the following preamble instructions take precedence.<br /> |
Copilot
AI
Oct 15, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[nitpick] These large static instruction blocks inline the full text, making the component harder to scan. Consider extracting each into dedicated React components or external markdown/template constants (e.g., and ) to reduce file size and improve reuse.
Copilot uses AI. Check for mistakes.
@AbdelrahmanAbouelenin please read the following Contributor License Agreement(CLA). If you agree with the CLA, please reply with the following information.
Contributor License AgreementContribution License AgreementThis Contribution License Agreement (“Agreement”) is agreed to by the party signing below (“You”),
|
1 similar comment
@AbdelrahmanAbouelenin please read the following Contributor License Agreement(CLA). If you agree with the CLA, please reply with the following information.
Contributor License AgreementContribution License AgreementThis Contribution License Agreement (“Agreement”) is agreed to by the party signing below (“You”),
|
Thanks, can you tell me more about where these instructions come from and what the motivation is? |
This PR adds two new instruction sections:
final_answer_instructions: Provides comprehensive formatting guidelines for final answers including structure, data presentation, visual enhancement, and readability best practices.
preamble_instructions: Defines guidelines for writing preambles between tool calls, including cadence, content focus, voice & openings with varied sentence starters, format templates, and DO/DON'T rules.
Both sections are conditionally rendered only when isGpt5Mini is true and are positioned after the outputFormatting tag in the DefaultAgentPrompt class.