NeMo Relay LangChain Integration
Use the nemo_relay.integrations.langchain package to add NeMo Relay
observability to LangChain agents.
Setup
Install the LangChain integration extra in your application environment.
uv
pip
The example below uses the NVIDIA LangChain provider. Install that provider extra too if you want to run the example as written:
uv
pip
Usage Example
Verify the Integration
The integration works correctly when:
- The agent run completes and prints a final response.
- The
langchain-requestscope contains the managed model call. - Tool activity appears under the same request when the agent decides to use
get_weather.
Observability
Refer to Observability for details on exporting NeMo Relay observability data to third-party systems.