bug: Colang 2.0 issue when using LangChain #891
Labels
bug
Something isn't working
status: needs triage
New issues that have not yet been reviewed or categorized.
Did you check docs and existing issues?
Python version (python --version)
Python 3.11.8
Operating system/version
Windows 11 Enterprise
NeMo-Guardrails version (if you must use a specific version and not the latest
0.11.0
nemoguardrails==0.11.0
langchain==0.3.4
langchain-community==0.3.3
langchain-core==0.3.12
langchain-openai==0.2.3
Describe the bug
I am trying to use Colang 2.X in my LangChain app for a beta example. I am using LangChain with Azure OpenAI model endpoint and trying to get the Dialog Rails example in the NVIDIA Docs (hello_world_3) example with
llm continuation
to work following the example here: https://docs.nvidia.com/nemo/guardrails/colang_2/getting_started/dialog-rails.htmlHowever when I try to invoke the chain to test if the RAILS of "hi" is working I get the following error:
ValueError: The `output_vars` option is not supported for Colang 2.0 configurations.
Which originates from here: https://github.com/NVIDIA/NeMo-Guardrails/blob/develop/nemoguardrails/rails/llm/llmrails.py#L882
I am able to use Colang 1 with success, but unable to use Colang 2 when using it in the LangChain chain. When I use
nemoguardrails chat
I am able to test out the rail of "hi", however thellm continuation
dpesnt seem to work when I try to type in what they have in the example above - akka I am not getting any response back and it just spins.I have my
./config/main.co
file as the following:within a Jupyter notebook I have the following:
Steps To Reproduce
Follow printed output above for example set up and jupyter notebook.
Expected Behavior
Actual Behavior
Described above"
However when I try to invoke the chain to test if the RAILS of "hi" is working I get the following error:
ValueError: The `output_vars` option is not supported for Colang 2.0 configurations.
Which originates from here: https://github.com/NVIDIA/NeMo-Guardrails/blob/develop/nemoguardrails/rails/llm/llmrails.py#L882
The text was updated successfully, but these errors were encountered: