Commit Graph

7 Commits

Author SHA1 Message Date
jnjpng
700409d943 fix: sanitize null bytes test (#8135)
base
2026-01-12 10:57:47 -08:00
github-actions[bot]
dbdd1a40e4 fix: sanitize null bytes to prevent PostgreSQL CharacterNotInRepertoireError (#8015)
This fixes the asyncpg.exceptions.CharacterNotInRepertoireError that occurs
when tool returns contain null bytes (0x00), which PostgreSQL TEXT columns
reject in UTF-8 encoding.

Changes:
- Add sanitize_null_bytes() function to recursively remove null bytes from strings
- Update json_dumps() to sanitize data before serialization
- Apply sanitization in converters.py for tool_calls, tool_returns, approvals, and message_content
- Add comprehensive unit tests

Fixes #8014

🤖 Generated with [Letta Code](https://letta.com)

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Letta <noreply@letta.com>
Co-authored-by: Kian Jones <11655409+kianjones9@users.noreply.github.com>
2026-01-12 10:57:47 -08:00
jnjpng
b62955f0bf fix: gemini 2.5 thinking models fail to call functions if thinking is fully disabled
Co-authored-by: Jin Peng <jinjpeng@Jins-MacBook-Pro.local>
2025-08-08 16:34:32 -07:00
Andy Li
94d10589c8 fix: structured outputs for send_message, LettaMessage 2025-07-24 14:50:52 -07:00
jnjpng
17ea813c32 fix: add b64 encoding fallback for json_dumps (#3503)
Co-authored-by: Jin Peng <jinjpeng@Jins-MacBook-Pro.local>
2025-07-23 19:32:28 -07:00
Sarah Wooders
9a3413e5f6 chore: handle bytes in json_helpers.py (#3229) 2025-07-08 22:48:35 -07:00
Matthew Zhou
8d765f286e feat: Composio tools execute on-the-fly (#999) 2025-02-13 16:13:29 -08:00