Repository navigation
Conversation
Contributor
|
@wang1299 is attempting to deploy a commit to the deepset Team on Vercel. A member of the Team first needs to authorize it. |
This branch has not been deployed
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
Proposed Changes
An Agent with tools treats a completed refusal-only model reply as an empty recoverable response and requests more replies until its step limit. Recognize non-empty string refusal metadata as the existing
content_filteroutcome, retaining the original refusal and provider metadata.This also lets StructuredOutputHook store
Nonewithout retrying a refusal. Tool-call replies, ordinary empty-reply recovery andlengthprecedence remain intact; on-exit hooks can still request deliberate recovery. Refusals without tools now reportcontent_filterinstead oftext, covered by the upgrade note.How did you test it?
The full upstream test/type suite, other runtime versions, Linux and production load were not verified.
Notes for the reviewer
Reusing
content_filteravoids adding an exit-reason value and matches the existing blocked/refused-response path. Feedback on this choice is welcome. The Issue assignment request is not maintainer acceptance.This implementation was generated with an AI coding assistant, tested locally and independently reviewed by a read-only AI agent. It is submitted as a Draft for review; no personal human-review attestation is claimed.