Merge pull request #2413 from nanocoai/fix/compact-instructions-reminder
fix(compact): place destination reminder at end of compaction summary
This commit is contained in:
@@ -26,9 +26,9 @@ const instructions = [
|
|||||||
'2. Preserve the chronological message/reply sequence of recent exchanges.',
|
'2. Preserve the chronological message/reply sequence of recent exchanges.',
|
||||||
' The agent needs to see: who said what, in what order, and from which destination.',
|
' The agent needs to see: who said what, in what order, and from which destination.',
|
||||||
'',
|
'',
|
||||||
'3. The `from` attribute identifies which destination sent the message.',
|
'3. At the END of the compaction summary, include this verbatim reminder:',
|
||||||
' The agent MUST wrap all responses in <message to="name">...</message> blocks.',
|
' "You MUST wrap all responses in <message to="name">...</message> blocks.',
|
||||||
` Available destinations: ${names.length > 0 ? names.map((n) => `\`${n}\``).join(', ') : '(none)'}`,
|
` Available destinations: ${names.length > 0 ? names.map((n) => `\`${n}\``).join(', ') : '(none)'}."`,
|
||||||
];
|
];
|
||||||
|
|
||||||
console.log(instructions.join('\n'));
|
console.log(instructions.join('\n'));
|
||||||
|
|||||||
Reference in New Issue
Block a user