NVIDIA-NeMo / NVIDIA-NeMo/Guardrails
Inconsistent response format for `RunnableRails`.
Open
Nobody has claimed this yet.
enhancement
- Dominant language
- Python
- Stars
- 7.2k
- Forks
- 842
- Avg merge
- 3d 1h
- Merged PRs (30d)
- 25
Description
If the output of a chain is a string, and it if the guardrails layer is blocking the input, or the output, the response format becomes a dict with the output key. There should be an option to always enforce a consistent format (either string or dict).
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the RunnableRails implementation and the response-handling path for blocked inputs and outputs. Determine how string and dict responses are currently selected; done means providing a documented option for consistently returning either format and covering both blocking cases with tests.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- ai
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100