hermes-agent/tests/providers
Teknium 4c64ff3aa0
feat(nous): send top-level session_id for provider sticky routing (#69253)
* feat(nous): send top-level session_id for provider sticky routing

The Nous Portal profile only embedded the session id inside portal tags,
so Claude traffic through the portal had no sticky-routing key. Multi-turn
sessions could reroute between upstream endpoints (Anthropic/Vertex/
Bedrock), cold-writing a fresh prompt cache on every reroute since each
provider's cache is instance-local.

Mirror the OpenRouter profile: emit extra_body.session_id whenever the
agent has one, pinning every turn of a session to the same endpoint so
explicit cache_control breakpoints stay warm.

* test: expect top-level session_id in Nous max-iterations summary body

Sibling site of the profile change — the max-iterations summary path
builds its request through the same NousProfile.build_extra_body(), so
its exact-shape assertion now includes the sticky-routing session_id
when the agent has a session.
2026-07-22 04:39:20 -07:00
..
__init__.py
test_e2e_wiring.py
test_fetch_models_base_url.py compare full origin (scheme, host, port), not hostname, before keeping credentials 2026-07-11 12:28:55 +05:30
test_plugin_discovery.py feat(providers): add Fireworks AI as preferred provider 2026-07-11 05:43:35 -07:00
test_profile_wiring.py fix(openrouter): never send reasoning field for adaptive Anthropic models (#43012) 2026-06-10 00:18:23 +05:30
test_provider_profiles.py feat(nous): send top-level session_id for provider sticky routing (#69253) 2026-07-22 04:39:20 -07:00
test_transport_parity.py fix(nous): forward provider routing through Portal 2026-07-10 13:10:45 +05:30