NVIDIA / NeMo-Guardrails

NeMo Guardrails is an open-source toolkit for easily adding programmable guardrails to LLM-based conversational systems.
Other
4.21k stars 400 forks source link

Fix: Process all outgoing events #732

Closed sklinglernv closed 2 months ago

sklinglernv commented 2 months ago

Fixes a bug in the Colang 2 runtime, that causes certain output events to be not fed as input events again. This happens if multiple input_events are processed at the same time and all of these events generate output_events.

This PL fixes this by maintaining a separate list of output events that need to be added to the input event list to continue processing.

schuellc-nvidia commented 2 months ago

Thanks Severin! Looks good!