pub fn validate_memory_content(content: &str) -> Result<(), ToolError>Expand description
Validate a memory entry content string before persisting.
Rejects content that exceeds the length limit or embeds XML tags that
could break out of the <untrusted_memory> boundary in the system prompt.