-
Notifications
You must be signed in to change notification settings - Fork 760
inferences should retry in durable-tools if the output is empty #5956
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
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.
π‘ Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 0b7d21f48b
βΉοΈ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with π.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
/merge-queue |
|
π Merge queue workflow triggered! View the run: https://github.com/tensorzero/tensorzero/actions/runs/21461414995 |
6feca03 to
3883e62
Compare
|
/merge-queue |
|
π Merge queue workflow triggered! View the run: https://github.com/tensorzero/tensorzero/actions/runs/21462672703 |
Note
Medium Risk
Behavior of
ToolContext::inferencechanges to treat empty model outputs as step failures, which can increase retries or mark tasks failed where they previously succeeded with empty data. Risk is moderate because it affects durable task execution semantics but not security-sensitive logic.Overview
Prevents durable inference steps from silently succeeding with empty model output by making
ToolContext::inferencereturn an error when chat responses have no content blocks or JSON responses haveoutput.raw == None, enabling the durable step to be retried.Adds integration coverage that mocks empty chat/JSON inference responses and asserts the spawned
TaskToolrun is marked failed with an empty output failure reason.Written by Cursor Bugbot for commit 3883e62. This will update automatically on new commits. Configure here.