-
Notifications
You must be signed in to change notification settings - Fork 21
fix: Add raw_generated_gql to intermediate_steps when verify_gql is True #174
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
|
cc: @mtyin |
| generated_gql = extract_gql(gen_response) | ||
|
|
||
| if self.verify_gql: | ||
| intermediate_steps.append({"raw_generated_gql": generated_gql}) |
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.
You may want to move this right above L314: intermediate_steps.append({"verified_gql": verified_gql}).
As in other cases, generated_gql is already part of the intermediate_steps.
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.
Sure. Done. Makes sense also from a consumer point of view, if you have verified_gql you will have raw_generated_gql.
mtyin
left a comment
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.
LGTM, thanks for making the change!
|
Rewrote commit message to pass Conventional Commits |
|
/gcbrun |
|
/gcbrun |
|
/gcbrun |
2 similar comments
|
/gcbrun |
|
/gcbrun |
|
/gcbrun |
Fixes issue #173