fix: invalid tool call ID recovery and system-reminder tag centralization (#627)

Co-authored-by: Letta <noreply@letta.com>
This commit is contained in:
Charles Packer
2026-01-21 20:43:35 -08:00
committed by GitHub
parent 35b0d658f3
commit 2e7fe42658
14 changed files with 367 additions and 35 deletions

View File

@@ -17,6 +17,13 @@ export const DEFAULT_AGENT_NAME = "Nameless Agent";
*/
export const INTERRUPTED_BY_USER = "Interrupted by user";
/**
* XML tag used to wrap system reminder content injected into messages
*/
export const SYSTEM_REMINDER_TAG = "system-reminder";
export const SYSTEM_REMINDER_OPEN = `<${SYSTEM_REMINDER_TAG}>`;
export const SYSTEM_REMINDER_CLOSE = `</${SYSTEM_REMINDER_TAG}>`;
/**
* Status bar thresholds - only show indicators when values exceed these
*/