Repository navigation
fix(validators): recover from malformed function calls - #13908
Merged
bogdankostic merged 3 commits intoDec 2, 2026
Merged
bogdankostic merged 3 commits into
bogdankostic merged 3 commits into
Conversation
Contributor
|
@Jenil1905 is attempting to deploy a commit to the deepset Team on Vercel. A member of the Team first needs to authorize it. |
Contributor
Author
|
Hi @bogdankostic, just following up on this PR. It's been a few days since I opened it, and I'd appreciate it if you could take a look when you get a chance. Happy to address any feedback or requested changes. Thanks! |
Contributor
Coverage reportClick to see where and how coverage changed
This report was generated by python-coverage-comment-action |
||||||||||||||||||||||||||||||||||||
bogdankostic
approved these changes
Dec 2, 2026
bogdankostic
left a comment
Contributor
There was a problem hiding this comment.
Thanks @Jenil1905! I pushed a small commit that makes the error message show the expected function-call shape and cuts the new tests down to a few representative cases. Looks good to me.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Related Issues
No existing issue linked.
Proposed Changes:
In an LLM JSON recovery loop, a response such as
{}or{"function": {}}currently makesJsonSchemaValidatorraiseKeyErrorinstead of returning a correction prompt. Malformed entries in a function-call list can also abort the pipeline.This change checks the function-call envelope before extracting arguments and routes malformed output through the existing
validation_errorhandler. Argument-schema validation and custom error templates retain their existing behavior.How did you test it?
git diff --check.Notes for the reviewer
No public API changes. A release note is included.
Checklist