mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-11-21 07:55:08 +00:00
Two fixes inspired by OpenClaw v2026.3.28: 1. Anthropic content policy (sensitive stop_reason): When Anthropic blocks a response with stop_reason='sensitive', the adapter now maps it to finish_reason='content_filter' and injects a user-facing message instead of crashing on empty content. 2. WhatsApp echo loop: The WhatsApp bridge now sends fromMe flag on message events, and the Python adapter filters out self-sent messages. Prevents an infinite loop where the bot processes its own outbound replies as new inbound. 9 new tests (6 anthropic + 3 whatsapp). |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| test_anthropic_sensitive.py | ||
| test_auxiliary_client.py | ||
| test_context_compressor.py | ||
| test_display_emoji.py | ||
| test_external_skills.py | ||
| test_model_metadata.py | ||
| test_models_dev.py | ||
| test_prompt_builder.py | ||
| test_prompt_caching.py | ||
| test_redact.py | ||
| test_skill_commands.py | ||
| test_smart_model_routing.py | ||
| test_subagent_progress.py | ||
| test_title_generator.py | ||
| test_usage_pricing.py | ||