bug: Guardrails won't work when llm is set to with_structured_output #924
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)
3.12.1
Operating system/version
Windows 11
NeMo-Guardrails version (if you must use a specific version and not the latest
No response
Describe the bug
Package versions used:
When I try to use the guardrails with a regular llm, it works just fine, but when I try to use with an llm which is wrapped with langchain's with_structured_output, I get the following error:
Steps To Reproduce
Expected Behavior
This should work fine with or without the with_structured_output functionality.
Actual Behavior
When I invoke the chain when llm is set to with_structured_output, I receive the following error:
The text was updated successfully, but these errors were encountered: