From c98de70c2bb257109a9a315695778aebeef6c679 Mon Sep 17 00:00:00 2001 From: Jai Suphavadeeprasit Date: Wed, 15 Jul 2026 16:04:07 -0400 Subject: [PATCH] test(providers): update Nous parity test for conversation tag The end-to-end _build_api_kwargs parity test asserted the Nous Portal tags exactly equal the base two-tag list. With the per-session conversation tag, a real agent (which has a session_id) now emits a third `conversation=` tag. Assert against nous_portal_tags(session_id=agent.session_id) so the check stays exact. --- tests/run_agent/test_provider_parity.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/run_agent/test_provider_parity.py b/tests/run_agent/test_provider_parity.py index 8229b0f020d9..56dbd153ef08 100644 --- a/tests/run_agent/test_provider_parity.py +++ b/tests/run_agent/test_provider_parity.py @@ -429,7 +429,7 @@ class TestBuildApiKwargsNousPortal: messages = [{"role": "user", "content": "hi"}] kwargs = agent._build_api_kwargs(messages) extra = kwargs.get("extra_body", {}) - assert extra.get("tags") == nous_portal_tags() + assert extra.get("tags") == nous_portal_tags(session_id=agent.session_id) def test_uses_chat_completions_format(self, monkeypatch): agent = _make_agent(