The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
chore(relay): upgrade to 0.10.0
mnajafian-nv6caac042b105
diff --git a/pyproject.toml b/pyproject.tomlindex 648a597cad2..852acc06b92 100644--- a/pyproject.toml+++ b/pyproject.toml@@ -199,7 +199,7 @@ dependencies = [# Hence the ``sys_platform == 'win32'`` marker: the dep (and its portalocker# / pywin32 tree) ships only where it's actually used."concurrent-log-handler==0.9.29; sys_platform == 'win32' and python_version >= '3.14'",- # First-party lifecycle and shared-metrics runtime. Relay 0.9 is the supported+ # First-party lifecycle and shared-metrics runtime. Relay 0.10 is the supported# native runtime and provider-codec baseline. Managed calls pass request and# response data through this native module in-process; shared metrics installs# no network exporter and consumes only its bounded projection. This marker@@ -213,7 +213,7 @@ dependencies = [# 738 CPython reports sys_platform == 'android' and never matched.) Pre-GKI# devices can still slip through; they get the same resolution failure as# before, worked around by installing with `--no-deps` or an older release.- "nemo-relay>=0.9,<0.10; ((sys_platform == 'darwin' and platform_machine == 'arm64') or (sys_platform == 'linux' and platform_machine == 'x86_64' and 'android' not in platform_release) or (sys_platform == 'linux' and platform_machine == 'aarch64' and 'android' not in platform_release) or (sys_platform == 'win32' and platform_machine == 'AMD64') or (sys_platform == 'win32' and platform_machine == 'ARM64')) and python_version >= '3.14'",]+ "nemo-relay>=0.10,<0.11; ((sys_platform == 'darwin' and platform_machine == 'arm64') or (sys_platform == 'linux' and platform_machine == 'x86_64' and 'android' not in platform_release) or (sys_platform == 'linux' and platform_machine == 'aarch64' and 'android' not in platform_release) or (sys_platform == 'win32' and platform_machine == 'AMD64') or (sys_platform == 'win32' and platform_machine == 'ARM64')) and python_version >= '3.14'",][project.optional-dependencies]# High-performance event loop — uvloop replaces the stdlib asyncio loop withdiff --git a/tests/agent/test_relay_llm.py b/tests/agent/test_relay_llm.pyindex 61232cd9898..0066b23c245 100644--- a/tests/agent/test_relay_llm.py+++ b/tests/agent/test_relay_llm.py@@ -414,7 +414,10 @@ def test_stream_uses_rewritten_request_and_post_intercept_chunks(relay_turn):annotated,)- def rewrite_stream(request, next_call):+ def rewrite_stream(name, request, context, next_call):+ assert name == "test-provider"+ assert context.response_codec is None+async def generate():upstream = await next_call(request)async for chunk in upstream:@@ -1522,7 +1525,9 @@ def test_stream_current_unwraps_completed_response_with_real_interceptor(relay_trelay, _turn = relay_turncompleted = _completed_response()- async def identity_stream(request, next_call):+ async def identity_stream(name, request, context, next_call):+ assert name == "test-provider"+ assert context.response_codec is Nonereturn await next_call(request)relay.intercepts.register_llm_stream_execution(@@ -1551,7 +1556,10 @@ def test_stream_current_preserves_real_relay_interceptor_chunks(relay_turn):"""Priming a real managed pipeline must retain its transformed first chunk."""relay, _turn = relay_turn- def rewrite_stream(request, next_call):+ def rewrite_stream(name, request, context, next_call):+ assert name == "test-provider"+ assert context.response_codec is None+async def generate():upstream = await next_call(request)async for chunk in upstream:diff --git a/tests/agent/test_relay_runtime_plugins.py b/tests/agent/test_relay_runtime_plugins.pyindex 2b758eca385..63a29d7450d 100644--- a/tests/agent/test_relay_runtime_plugins.py+++ b/tests/agent/test_relay_runtime_plugins.py@@ -1089,7 +1089,7 @@ kind = "observability"enabled = true[components.config]-version = 3+version = 4[components.config.atof]enabled = true@@ -1112,11 +1112,6 @@ mode = "overwrite"host = relay_runtime.RelayRuntime(relay=relay, profile_key="profile")try:- assert not host.managed_execution_enabled()- assert (- host._plugin_configuration_state- is relay_runtime._RelayPluginConfigurationState.DISABLED- )report = relay_runtime._PLUGIN_CONFIGURATION._activation.reportconfig_paths = set(report["config_paths"])assert str(user_config) in config_paths@@ -1155,7 +1150,7 @@ kind = "observability"enabled = true[components.config]-version = 3+version = 4[components.config.atof]enabled = true@@ -1248,7 +1243,7 @@ kind = "observability"enabled = true[components.config]-version = 3+version = 4[components.config.atof]enabled = truediff --git a/tests/conftest.py b/tests/conftest.pyindex d6460254c9d..e6f97523547 100644--- a/tests/conftest.py+++ b/tests/conftest.py@@ -319,13 +319,17 @@ def _hermetic_environment(tmp_path, tmp_path_factory, monkeypatch):if not HOST_LOCK_DIR_AT_CONFTEST_IMPORT:monkeypatch.delenv("XDG_STATE_HOME", raising=False)monkeypatch.setenv("HERMES_GATEWAY_LOCK_DIR", str(tmp_path / "gateway-locks"))- # Relay 0.9 normally discovers the user's XDG plugins.toml. Select an empty- # per-test user file instead so tests cannot activate a developer's plugins,+ # Relay normally discovers the user's XDG plugins.toml and merges the machine+ # policy above it. Select a per-test user file that denies dynamic plugins so+ # tests cannot activate a developer's or machine policy's worker/native plugins,# without changing XDG_CONFIG_HOME for unrelated Hermes code under test.# Outside tmp_path: tests that list or git-status their tmp dir must not see it.relay_plugins = tmp_path_factory.getbasetemp() / "relay-plugins.toml"if not relay_plugins.exists():- relay_plugins.write_text("version = 1\n", encoding="utf-8")+ relay_plugins.write_text(+ "version = 1\n\n[plugins.policy.defaults]\nallowed = false\n",+ encoding="utf-8",+ )monkeypatch.setenv("HERMES_NEMO_RELAY_PLUGINS_TOML", str(relay_plugins))# Keep the subprocess-surviving isolation marker pointed at THIS test's# home (#82770): children spawned by the test inherit it by default, sodiff --git a/uv.lock b/uv.lockindex 2b913598993..d448b051c2a 100644--- a/uv.lock+++ b/uv.lock@@ -14,105 +14,105 @@ exclude-newer = "0001-01-01T00:00:00Z" # This has no effect and is included forexclude-newer-span = "P14D"[options.exclude-newer-package]-agent-client-protocol = false+elevenlabs = false+langfuse = "2026-09-09T16:01:26Z"+setuptools = false+modal = false+pyyaml = false+maturin = false+numpy = false+pvporcupine = false+google-auth = falseaiohttp = false-aiohttp-socks = false-aiosqlite = false-alibabacloud-dingtalk = false+starlette = false+mistralai = false+firecrawl-py = false+parallel-web = false+markdown = false+opentelemetry-sdk = false+prompt-toolkit = false+fastapi = falseanthropic = false+pathspec = false+ruff = false+defusedxml = false+websockets = false+exa-py = false+mcp = false+python-olm = false+wheel = false+pytest = false+pillow = false+setuptools-rust = false+tenacity = false+sherpa-onnx-core = "2026-09-10T15:58:47Z"+pyjwt = false+slack-bolt = false+fal-client = falseasyncpg = false-azure-identity = falseboto3 = false-brotlicffi = false-browser-harness = false+ruamel-yaml = false+sherpa-onnx = "2026-09-10T17:00:04Z"+huggingface-hub = false+pytest-asyncio = false+google-cloud-pubsub = false+slack-sdk = false+discord-py = false+rich = false+faster-whisper = falsecertifi = false-concurrent-log-handler = false-croniter = false-cryptography = false-daytona = false-ddgs = "2026-08-26T21:52:34Z"debugpy = false-defusedxml = false-dingtalk-stream = false-discord-py = false+ddgs = "2026-08-26T21:52:34Z"+packaging = false+unpaddedbase64 = false+youtube-transcript-api = false+h2 = falseedge-tts = false-elevenlabs = false-exa-py = false-fal-client = false-fastapi = false-faster-whisper = false-fire = false+microsoft-teams-apps = false+aiohttp-socks = false+sentencepiece = false+opentelemetry-exporter-otlp-proto-http = false+croniter = false+browser-harness = false+azure-identity = false+lark-oapi = falsefirecrawl-anydoc = false-firecrawl-py = falsegoogle-api-python-client = false-google-auth = false-google-auth-httplib2 = false-google-auth-oauthlib = false-google-cloud-pubsub = false-h2 = false+brotlicffi = false+qrcode = false+soundfile = "2026-06-06T08:58:48Z"+vercel = false+aiosqlite = false+tzdata = false+python-dotenv = false+daytona = false+uvicorn = false+nemo-relay = false+requests = falsehttplib2 = falsehttpx = false-httpx2 = false-huggingface-hub = false-jinja2 = false-langfuse = "2026-09-09T16:01:26Z"-lark-oapi = false-markdown = false-maturin = false-mautrix = false-mcp = false-microsoft-teams-apps = false-mistralai = false-modal = false-nemo-relay = false-neutts = "2026-07-22T14:54:23Z"-numpy = false-openai = false-opentelemetry-exporter-otlp-proto-http = false-opentelemetry-sdk = false-packaging = false-parallel-web = false-pathspec = false-pillow = falsepiper-tts = "2026-09-04T16:47:32Z"-prompt-toolkit = false-psutil = false-pvporcupine = falsepyasn1 = false+snowballstemmer = false+concurrent-log-handler = false+cryptography = falsepydantic = false-pyjwt = false-pytest = false-pytest-asyncio = false-python-dotenv = false+agent-client-protocol = false+fire = false+httpx2 = false+google-auth-oauthlib = falsepython-multipart = false-python-olm = false+ty = false+openai = false+google-auth-httplib2 = false+neutts = "2026-07-22T14:54:23Z"+mautrix = false+psutil = falsepython-telegram-bot = false-pyyaml = false-qrcode = false-requests = false-rich = false-ruamel-yaml = false-ruff = false-sentencepiece = false-setuptools = false-setuptools-rust = false-sherpa-onnx = "2026-09-10T17:00:04Z"-sherpa-onnx-core = "2026-09-10T15:58:47Z"-slack-bolt = false-slack-sdk = false-snowballstemmer = false+jinja2 = falsesounddevice = false-soundfile = "2026-06-06T08:58:48Z"-starlette = false-tenacity = false-ty = false-tzdata = false-unpaddedbase64 = false-uvicorn = false-vercel = false-websockets = false-wheel = false-youtube-transcript-api = false+alibabacloud-dingtalk = false+dingtalk-stream = false[manifest]overrides = [@@ -2720,7 +2720,7 @@ requires-dist = [{ name = "misaki", extras = ["en"], marker = "(platform_machine != 'x86_64' and sys_platform == 'darwin' and extra == 'kittentts') or (platform_machine != 'ARM64' and sys_platform == 'win32' and extra == 'kittentts') or (sys_platform != 'darwin' and sys_platform != 'win32' and extra == 'kittentts')", git = "https://github.com/NousResearch/misaki.git?rev=f03fd2be7346952a83d3d4845c217fc7667f322d" },{ name = "mistralai", marker = "extra == 'mistral'", specifier = "==2.4.8" },{ name = "modal", marker = "extra == 'modal'", specifier = "==1.5.5" },- { name = "nemo-relay", marker = "(python_full_version >= '3.14' and platform_machine == 'aarch64' and 'android' not in platform_release and sys_platform == 'linux') or (python_full_version >= '3.14' and platform_machine == 'x86_64' and 'android' not in platform_release and sys_platform == 'linux') or (python_full_version >= '3.14' and platform_machine == 'arm64' and sys_platform == 'darwin') or (python_full_version >= '3.14' and platform_machine == 'AMD64' and sys_platform == 'win32') or (python_full_version >= '3.14' and platform_machine == 'ARM64' and sys_platform == 'win32')", specifier = ">=0.9,<0.10" },+ { name = "nemo-relay", marker = "(python_full_version >= '3.14' and platform_machine == 'aarch64' and 'android' not in platform_release and sys_platform == 'linux') or (python_full_version >= '3.14' and platform_machine == 'x86_64' and 'android' not in platform_release and sys_platform == 'linux') or (python_full_version >= '3.14' and platform_machine == 'arm64' and sys_platform == 'darwin') or (python_full_version >= '3.14' and platform_machine == 'AMD64' and sys_platform == 'win32') or (python_full_version >= '3.14' and platform_machine == 'ARM64' and sys_platform == 'win32')", specifier = ">=0.10,<0.11" },{ name = "neutts", extras = ["all"], marker = "python_full_version < '3.14' and extra == 'neutts'", specifier = "==1.4.1" },{ name = "numpy", marker = "extra == 'audio-io'", specifier = "==2.4.3" },{ name = "numpy", marker = "extra == 'voice'", specifier = "==2.4.3" },@@ -3943,17 +3943,17 @@ wheels = [[[package]]name = "nemo-relay"-version = "0.9.3"+version = "0.10.0"source = { registry = "https://pypi.org/simple" }-sdist = { url = "https://files.pythonhosted.org/packages/a0/62/2da923b93897c98a7f81cc7a004d9ec9388bbc00ba7ea2a0d6a21f8e6ab7/nemo_relay-0.9.3.tar.gz", hash = "sha256:73bb0f17b4b70bf9a26a3b669042771f3157017c74079d74ceed220cb8ee7dc1", size = 1706207, upload-time = "2026-09-28T18:22:35.233Z" }+sdist = { url = "https://files.pythonhosted.org/packages/16/e8/016a4c95429c37c456d5580d92dffb46bd7d071017fea6d751c5b73582ca/nemo_relay-0.10.0.tar.gz", hash = "sha256:d3382e826d3d65551f3a307128c15116057fd7f45277f8a8d0cb51f8aca3ed68", size = 1922175, upload-time = "2026-10-08T22:01:42.101Z" }wheels = [- { url = "https://files.pythonhosted.org/packages/2b/72/d789ca7867b3c2e1cd243f6bd7b1ee7fd14165ab0eac95d21cd630602817/nemo_relay-0.9.3-cp311-abi3-macosx_11_0_arm64.whl", hash = "sha256:6c3fc28695a1ffdaca9a60f16bed7fe8aef05aeecc355deb31f01715ff711f64", size = 10326767, upload-time = "2026-09-28T18:22:03.834Z" },- { url = "https://files.pythonhosted.org/packages/0f/ec/0fd9311e59e376170dfb5210ca62f9de9f8aa279e42ed0b571a54a91b484/nemo_relay-0.9.3-cp311-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:567100c80bcd5b364fb7282eecdcf1015abb56da8452901ab2dc8bf14f41f22b", size = 9251743, upload-time = "2026-09-28T18:22:06.12Z" },- { url = "https://files.pythonhosted.org/packages/6a/e6/a185302f50b46dab3f753bee9a7be335809de0a8d3d22ed87c3501f78494/nemo_relay-0.9.3-cp311-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:b62db23e2a17fa6b794d03096c5fb120b4c62cdd0336356a6456015f75f08345", size = 9860423, upload-time = "2026-09-28T18:22:08.023Z" },- { url = "https://files.pythonhosted.org/packages/10/5f/70f156432560465f173b9f21b315816b1e5f4cf6023b37af41b5a8986165/nemo_relay-0.9.3-cp311-abi3-musllinux_1_2_aarch64.whl", hash = "sha256:2ddd2d9ef3a5e67ffca46f8a2547b32078cbc8a80284a95c09282b0e33ad7b5e", size = 11425678, upload-time = "2026-09-28T18:22:10.048Z" },- { url = "https://files.pythonhosted.org/packages/82/67/d31c8dced6327fbd2e6c4d93c911d9267c940c5e08f1a11dcc137adee959/nemo_relay-0.9.3-cp311-abi3-musllinux_1_2_x86_64.whl", hash = "sha256:51a5904b91727e4ef7eb3c7fc9b745a4668b008e19bc29706868978b2dffbae0", size = 11894425, upload-time = "2026-09-28T18:22:12.095Z" },- { url = "https://files.pythonhosted.org/packages/c5/d3/60aa9e92d4e40282eb40606fbb0fcb533a9a02ee3c4df089c3b025b50316/nemo_relay-0.9.3-cp311-abi3-win_amd64.whl", hash = "sha256:7cf19aba5067b6e113c701016c9777d9b0246be5fed9a3cc43baa080dfae7863", size = 9821768, upload-time = "2026-09-28T18:22:14.133Z" },- { url = "https://files.pythonhosted.org/packages/c6/6e/f373d40d3eca83c3357da8589e012ff3eb66130ca1b0f7bde292919b2d7f/nemo_relay-0.9.3-cp311-abi3-win_arm64.whl", hash = "sha256:18db2ff5543283eb48e9187ca16417a4b77ac0014125eaaa39661505b2da4b43", size = 9408519, upload-time = "2026-09-28T18:22:16.015Z" },+ { url = "https://files.pythonhosted.org/packages/b0/2f/7ef6dba72d1aab1a33e331a3df0a2f516babcec387d29f09433612315558/nemo_relay-0.10.0-cp311-abi3-macosx_11_0_arm64.whl", hash = "sha256:cb007481fadadd75ab8a65a0d4376c1e1ea8658569fa8f740a290d9f331f9ace", size = 11026117, upload-time = "2026-10-08T22:01:08.459Z" },+ { url = "https://files.pythonhosted.org/packages/ca/c4/3dea169c0091c15c5f0a5e9a74232943e165c92d8005110cf47a5519a5eb/nemo_relay-0.10.0-cp311-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:de1bc91682c300ac9db5f5a360c4422ae2fd9ff1e87a0f71383bd3cc96eea53e", size = 9915746, upload-time = "2026-10-08T22:01:10.739Z" },+ { url = "https://files.pythonhosted.org/packages/f8/06/666fc09ec22ab62ef7bd039f4b62d2d73af1ca23b31429381a330be492bf/nemo_relay-0.10.0-cp311-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:e8825df39896dd4370803a1c14f6229a9ad6c4cc07d354554b4d856ad0f6afd1", size = 10615006, upload-time = "2026-10-08T22:01:13.136Z" },+ { url = "https://files.pythonhosted.org/packages/fc/bb/7a93d94244a80232933889f4b47f780a37e4a423e407183ff83f1defcb44/nemo_relay-0.10.0-cp311-abi3-musllinux_1_2_aarch64.whl", hash = "sha256:e46cfa51ab92861e3cd84702a8fd327b45fa7abda8d28ac02fc08cc83801e866", size = 12209885, upload-time = "2026-10-08T22:01:15.836Z" },+ { url = "https://files.pythonhosted.org/packages/1a/4e/7f189f44535e838c6f787bec92647e24d20d51177d69e08c54d162996301/nemo_relay-0.10.0-cp311-abi3-musllinux_1_2_x86_64.whl", hash = "sha256:fb4450479a0ee8dbd92badec9bcc284bf2af0b5f84ed4129ed8ad19bf585cf8e", size = 12726370, upload-time = "2026-10-08T22:01:18.098Z" },+ { url = "https://files.pythonhosted.org/packages/4b/02/4af11a9793d8fdd507a9d1bbcb5bf5fb31ec943b72c81942b62c582a2423/nemo_relay-0.10.0-cp311-abi3-win_amd64.whl", hash = "sha256:7d530810daeab0fd8219d131151423875de2dcef4e2f7d19f31c21e2122d0c2a", size = 10473477, upload-time = "2026-10-08T22:01:20.283Z" },+ { url = "https://files.pythonhosted.org/packages/7e/eb/7bc22345d73768135f3d84367f30e738bd50e6fc6f425e6e62af71cf930e/nemo_relay-0.10.0-cp311-abi3-win_arm64.whl", hash = "sha256:10e9964e2fb6c1e6bfea6e2a5d47452ac2332c1c9ef61bc10be346c9d2808ee3", size = 9999724, upload-time = "2026-10-08T22:01:22.602Z" },][[package]]diff --git a/website/docs/developer-guide/relay-shared-metrics.md b/website/docs/developer-guide/relay-shared-metrics.mdindex 240a909630c..9451ffa1e6e 100644--- a/website/docs/developer-guide/relay-shared-metrics.md+++ b/website/docs/developer-guide/relay-shared-metrics.md@@ -24,17 +24,23 @@ as a no-op compatibility alias for existing installation commands.> `HERMES_NEMO_RELAY_ATIF_*` settings. Those legacy variables no longer> configure Relay exporters themselves.-On supported platforms, Hermes requires NeMo Relay 0.9 for managed provider+On supported platforms, Hermes requires NeMo Relay 0.10 for managed providerand tool calls.## Runtime Dependency and Data BoundaryHermes installs the platform-specific `nemo-relay` native wheel from the-bounded `>=0.9,<0.10` dependency range. The published package is built from+bounded `>=0.10,<0.11` dependency range. The published package is built fromthe [NVIDIA NeMo Relay repository](https://github.com/NVIDIA/NeMo-Relay).Unsupported platforms use the explicit no-op runtime described above ratherthan downloading a different implementation.+Relay 0.10 requires observability configuration `version = 4`. Custom Python+LLM execution intercepts receive `(name, request, context, next_call)`; the+context exposes the selected request codec and, for non-streaming execution,+the response codec. Native plugins must be rebuilt for Relay 0.10's ABI v7 and+declare a `compat.relay` range that excludes Relay 0.9.+When Relay managed execution is active, the provider request and response passthrough that native module in the Hermes process so configured interceptors canoperate on the real call. This is separate from the shared-metrics data