error: maximum recursion depth exceeded while encoding a JSON object
` Traceback (most recent call last): Traceback (most recent call last): File "/a0/agent.py", line 253, in monologue chain, prompt = await self.prepare_chain( ^^^^^^^^^^^^^^^^^^^^^^^^^ File "/a0/agent.py", line 354, in prepare_chain await self.call_extensions("message_loop_prompts", loop_data=loop_data) File "/a0/agent.py", line 602, in call_extensions await cls(agent=self).execute(**kwargs) File "/a0/python/extensions/message_loop_prompts/_90_organize_history_wait.py", line 21, in execute await task File "/a0/python/helpers/history.py", line 345, in compress await self.compress() File "/a0/python/helpers/history.py", line 345, in compress await self.compress() File "/a0/python/helpers/history.py", line 345, in compress await self.compress() [Previous line repeated 2975 more times] File "/a0/python/helpers/history.py", line 313, in compress self.get_current_topic_tokens(), ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/a0/python/helpers/history.py", line 267, in get_current_topic_tokens return self.current.get_tokens() ^^^^^^^^^^^^^^^^^^^^^^^^^
9 stack lines skipped <<<
File "/a0/python/helpers/history.py", line 409, in serialize_output return f'{ai_label if output["ai"] else human_label}: {serialize_content(output["content"])}' ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/a0/python/helpers/history.py", line 418, in serialize_content raise e File "/a0/python/helpers/history.py", line 416, in serialize_content return json.dumps(content) ^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/json/init.py", line 231, in dumps return _default_encoder.encode(obj) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/json/encoder.py", line 200, in encode chunks = self.iterencode(o, _one_shot=True) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/json/encoder.py", line 258, in iterencode return _iterencode(o, 0) ^^^^^^^^^^^^^^^^^ RecursionError: maximum recursion depth exceeded while encoding a JSON object
RecursionError: maximum recursion depth exceeded while encoding a JSON object `