github NVIDIA-NeMo/Guardrails v0.19.0

4 hours ago

What's Changed

LangChain v1.x Support Is Here!

This release brings the highly requested LangChain 1.x compatibility to NeMo Guardrails. Many users in the community have been asking for this upgrade, and we're excited to deliver it. NeMo Guardrails now works with the latest LangChain ecosystem, including support for the new content blocks API that enables better handling of reasoning traces and tool calls.

This release also introduces several important bug fixes including an important fix related to async streaming for the nim or nvidia_ai_endpoints provider.

🚀 Features

  • Support langchain v1 (#1472)
  • (llm) Add LangChain 1.x content blocks support for reasoning and tool calls (#1496)
  • (benchmark) Add Procfile to run Guardrails and mock LLMs (#1490)
  • (benchmark): Add AIPerf run script ((#1501))

🐛 Bug Fixes

  • (llm) Add async streaming support to ChatNVIDIA provider patch (#1504)
  • ensure stream_async background task completes before exit (#1508)
  • (cli) Fix TypeError in v2.x chat due to incorrect State/dict conversion (#1509)
  • (llmrails): skip output rails when dialog disabled and no bot_message provided (#1518)
  • (llm): ensure that stop token is not ignored if llm_params is None (#1529)

⚙️ Miscellaneous Tasks

  • (llm) Remove deprecated llm_params module (#1475)

◀️ Revert

  • (llm) Remove custom HTTP headers patch now in langchain-nvidia-ai-endpoints v0.3.19 (#1503)

Full Changelog: v0.18.0...v0.19.0

Don't miss a new Guardrails release

NewReleases is sending notifications on new releases.