Python API#
These pages are generated from the python/nemo_relay package source.
Binding At A Glance#
This summary lists the package identity and support status for the binding.
Package name:
nemo-relayLocal development path: repository root
pyproject.tomlwithuv syncGenerated package root:
nemo_relay
The Python binding exposes the runtime through a public package layer in
python/nemo_relay and a compiled native extension exposed as nemo_relay._native.
Most users should work from the public package modules rather than the native
layer directly.
Main Binding Surfaces#
These entry points are the primary APIs to use from this binding.
nemo_relay.scope: create scopes, emit mark events, and manage scope handlesnemo_relay.toolsandnemo_relay.llm: run tool and LLM lifecycles from Pythonnemo_relay.guardrailsandnemo_relay.intercepts: register global middlewarenemo_relay.scope_local: register middleware against a specific scope hierarchynemo_relay.subscribers: observe emitted runtime lifecycle eventsnemo_relay.plugin,nemo_relay.adaptive, andnemo_relay.observability: configure plugin-backed, adaptive, and exporter behaviornemo_relay.typedandnemo_relay.codecs: use typed wrappers and request/response codecs
How To Read The Generated Pages#
The generated nemo_relay package page is the package root. Under that page you
will find submodule pages for the public binding surface, including:
llmtoolsscopescope_localguardrailsinterceptssubscriberspluginadaptiveobservabilitytypedcodecs
Use the generated Python package index when you want the docstring-level details for a specific symbol or module.