hermes-agent/tests/agent/transports
kshitij e09ef9ebd8 fix(transport): use getattr for supports_prompt_cache_key on stale profiles
After a partial update (stash restore overwriting providers/base.py with
an older version), the NousProfile singleton was instantiated from a
ProviderProfile class that predates the supports_prompt_cache_key field
(added in f4fb23f3d). Accessing profile.supports_prompt_cache_key raised
AttributeError, crashing every API call with:
  'NousProfile' object has no attribute 'supports_prompt_cache_key'

Use getattr(profile, 'supports_prompt_cache_key', False) so a stale
profile degrades to 'no prompt cache key' instead of crashing.
2026-08-09 23:19:39 -07:00
..
__init__.py
…
test_bedrock_transport.py
…
test_chat_completions.py fix(transport): use getattr for supports_prompt_cache_key on stale profiles 2026-08-09 23:19:39 -07:00
test_codex_app_server_runtime.py
…
test_codex_app_server_session.py
…
test_codex_event_projector.py
…
test_codex_transport.py
…
test_hermes_tools_mcp_server.py
…
test_transport.py
…
test_types.py
…