Security Notes
- Fixed an issue in
ChatPromptBuilderwhere specially crafted template variables could be interpreted as structured content (e.g., images, tool calls) instead of plain text. Template variables are now automatically sanitized during rendering, ensuring they are always treated as plain text.
🐛 Bug Fixes
- Fix malformed log format string in
DocumentCleaner. The warning for documents withNonecontent used%{document_id}instead of{document_id}, preventing proper interpolation of the document ID.