v0.24.0 #2336
Pouyanpi
announced in
Announcements
v0.24.0
#2336
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
What's Changed
NeMo Guardrails 0.24.0 substantially expands the built-in rails available through IORails. IORails can now execute 59 of the library's 67 action-backed input and output surfaces, including community integrations and rails that transform content, while sharing the same underlying rail implementations with LLMRails.
Three related foundations make this possible:
RailOutcome: decide once, render many. A rail action returns one engine-neutral allow, block, or transform result that either LLMRails or IORails can enforce.This release also adds F5 Guardrails integration, server health endpoints, multiple namespaced self-check rails, output checking through
/v1/checks, and extensive correctness improvements for streaming, provider errors, reasoning responses, and OpenAI-compatible server requests.Breaking changes
@action(output_mapping=...)must remove that argument and return an explicitRailOutcomefrom the action.transformersandtorchdirectly instead of using the removedhf-classifierextra.GenerationResponse, and message lists must be passed withmessages=rather than positionally./v1/checksnow selects a server-loaded configuration throughconfig_idor the server default instead of accepting inline configuration.🚀 Features
RailOutcomeallow, block, and transform contract (#2150)GenerationResponsefrom non-streaminggenerate()andgenerate_async()calls when options are supplied; pass message lists withmessages=instead of positionally (#2178)/v1/checks(#2205)/v1/healthand/healthzhealth-check endpoints (#2169)🐛 Bug Fixes
RailDecisionJSON serializable (#2194)include_metadata=Truestreams (#2198)default_headersin non-streaming and streaming HTTP requests (#2220)/v1/checks; select a server-loaded configuration withconfig_idor use the server default (#2228)rail_typeswith HTTP 422 instead of silently passing (#2276)default_queryparameters in model HTTP requests (#2296)<think>tags when reasoning content is present (#2316)💼 Other
hf-classifierinstall extra and its packages fromall; installtransformersandtorchdirectly for the local classifier backend (#2137)🚜 Refactor
RailOutcomeand remove@action(output_mapping=...); custom rail actions usingoutput_mappingmust return explicitRailOutcomedecisions (#2151)RailOutcomeactions with shared model and HTTP dependencies (#2241, #2246, #2253, #2261, #2286)📚 Documentation
RailOutcome-based rail actions (#2258)New Contributors
Full Changelog: v0.23.0...v0.24.0
This discussion was created from the release v0.24.0.
All reactions