NVIDIA-NeMo / NVIDIA-NeMo/Guardrails

Inconsistent response format for `RunnableRails`.

Open
#313 0 comments 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.