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.
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
feat(core): Add support for
boolean
metadata attributes inFunctionalTranslator
#7407base: main
Are you sure you want to change the base?
feat(core): Add support for
boolean
metadata attributes inFunctionalTranslator
#7407Changes from 22 commits
f967361
bf549bc
1b97531
2f43b70
f83470d
1a92845
cb8c08b
74b643a
9d8c25e
15c46bd
00e7721
db0b4ed
f55a5ce
379e466
10523ae
d538d8b
2bd18a7
8fb1fcd
fc79a32
56ee535
af87e11
d3376c4
f432c9b
824d090
eeaafd4
21f1504
dd2863e
21d5f7b
6ff9229
83a9db6
62eac92
b1ead94
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As mentioned in the PR description, I only added the bare minimum tests needed to ensure the modification to the existing functionality did not break the
visitComparison
logic.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When a test fails, the generated test name looks like
input_value -> comparator -> document_value
, like shown in the below screenshot for a failedeq
comparator check, where the input value isvalue
and the document value isinvalid-value
.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If this change is required, will this will mean that
langchain
will no longer support older versions of core without your other changes?Is there a way we can do this while only changing core?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
After looking into this,
TraverseType
already expectsboolean
, it's just that the typecasting ontraverse(node.args[1])
is forcibly setting it to expectstring | number
.To allow backward compatibility, I've reverted the typecasting to be what it was originally, while still allowing
boolean
return values fromtraverse
.