mirror of
https://github.com/HKUDS/nanobot.git
synced 2026-04-04 10:22:33 +00:00
Fix TypeError when LLM returns JSON objects instead of strings for history_entry or memory_update. Changes: - Update prompt to explicitly require string values with example - Add type checking and conversion for non-string values - Use json.dumps() for consistent JSON formatting Fixes potential memory consolidation failures when LLM interprets the prompt loosely and returns structured objects instead of strings.