-
Notifications
You must be signed in to change notification settings - Fork 30
Add a new retry feature to block
#824
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
base: main
Are you sure you want to change the base?
Add a new retry feature to block
#824
Conversation
Hi @hirokuni-kitahara, the PR looks great. How about instead of adding 2 new fields we only have When you make changes to the AST, you can run:
to automatically regenerate the jsonschema. This is probabaly what you did, but just double checking. There are also some other files that need to change (with an AST change): Finally, you can run the following locally to make sure everything is in good shape:
and:
See the contribution docs |
fe52fdc
to
4ea3dde
Compare
Thank you for your feedback @vazirim ! |
@hirokuni-kitahara can you rebase (other PRs have also changed the schema) and then run |
Thank you that is a great feature! Instead of doing it only on I would also rename |
repeat
blockblock
8822811
to
a4bd87d
Compare
Signed-off-by: hirokuni-kitahara <[email protected]>
Signed-off-by: hirokuni-kitahara <[email protected]>
Signed-off-by: hirokuni-kitahara <[email protected]>
Signed-off-by: hirokuni-kitahara <[email protected]>
Signed-off-by: hirokuni-kitahara <[email protected]>
Signed-off-by: hirokuni-kitahara <[email protected]>
a4bd87d
to
506e109
Compare
Signed-off-by: hirokuni-kitahara <[email protected]>
Signed-off-by: hirokuni-kitahara <[email protected]>
Signed-off-by: hirokuni-kitahara <[email protected]>
Signed-off-by: hirokuni-kitahara <[email protected]>
Signed-off-by: hirokuni-kitahara <[email protected]>
Signed-off-by: hirokuni-kitahara <[email protected]>
Signed-off-by: hirokuni-kitahara <[email protected]>
Signed-off-by: hirokuni-kitahara <[email protected]>
Signed-off-by: hirokuni-kitahara <[email protected]>
Thank you very much for the changes @hirokuni-kitahara! LGTM |
does this handle the case where an async/future'd model block invocation fails? |
Signed-off-by: hirokuni-kitahara [email protected]
This PR is based on the issue #823 and it adds two new fields
retry_on_error
andretry_max
to the existingrepeat
block.retry_on_error
is a simple boolean value which indicates if the retry feature is enabled or not, and if true, errors while running therepeat
block are added to the background context of the LLM.retry_max
is an integer value of the number of maximum retry.This PR contains the following changes
pdl_ast.py
pdl_interpreter.py
schema.json