mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-05-01 16:31:56 +08:00
If a tool_calls list contains a None entry (from malformed API response, compression artifact, or corrupt session replay), convert_messages_to_anthropic crashes with AttributeError: 'NoneType' object has no attribute 'get'. Skip None and non-dict entries in the tool_calls iteration. Found via chaos/fuzz testing with mixed valid/invalid tool_call entries.