-
Notifications
You must be signed in to change notification settings - Fork 2.5k
fix(langchain): improve output parsing in xml agent #3975
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
1 Skipped Deployment
|
Hello. Could you please let me know if there are any plans to complete this pull request soon? I'm currently encountering the issue where closing tags end up in the result as well. It would be greatly appreciated if this fix could be included in the update. If you're short on time, would it be possible for me to create a pull request myself? For instance, I could take the implementation from the Python version: https://api.python.langchain.com/en/latest/_modules/langchain/agents/output_parsers/xml.html#XMLAgentOutputParser |
Hey @VishulaKnow, will take it over! |
Fixed posible nulls in the function
Sorry it took so long to get this merged, and thanks for the contribution @jmlon! |
Fixed problem with handling of closing XML tags.
Fixed posible nulls returned by the match function.