Repository navigation
Conversation
run passes include_outputs_from for the components named in output_mapping, so an output that is also consumed inside the wrapped pipeline is not pruned. run_async did not, so such outputs were silently missing from the async result, including for a PipelineTool run by Agent.run_async. Co-Authored-By: Claude Opus 5 <[email protected]>
Contributor
|
@alanhuangyoo is attempting to deploy a commit to the deepset Team on Vercel. A member of the Team first needs to authorize it. |
This was referenced Sep 13, 2026
Co-Authored-By: Claude Opus 5 <[email protected]>
anakin87
approved these changes
Sep 14, 2026
anakin87
enabled auto-merge (squash)
September 14, 2026 07:44
Contributor
Coverage reportClick to see where and how coverage changed
This report was generated by python-coverage-comment-action |
||||||||||||||||||||||||||||||||||||||||||||||||||||||
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
SuperComponent.runandrun_async.Proposed Changes:
SuperComponentcan map outputs from components that are not leaves of the wrapped pipeline, likeretriever.documentsthat also feeds a prompt builder.runmakes this work by passinginclude_outputs_from=self._get_include_outputs_from()topipeline.run, so outputs consumed inside the pipeline are not pruned.run_asynccallspipeline.run_async(data=...)without it, so those outputs get pruned and_map_explicit_outputsskips the missing key without a warning.With a toy pipeline
add -> doubleandoutput_mapping={"add.value": "intermediate", "double.value": "final"}:It also shows up through an Agent, because
ComponentToolcallsrun_asyncwhen the component has one. APipelineToolwithoutputs_to_statereadingretriever.documentsfills the state underAgent.runand leaves it empty underAgent.run_async.The fix passes the same
include_outputs_frominrun_async.How did you test it?
test_super_component_non_leaf_output_async, the async twin oftest_super_component_non_leaf_output. It fails without the fix.pytest -m "not integration" test/core/super_component test/tools test/core/pipeline test/components/agents: 1136 passed, 1 failed. The failure istest_show_in_notebook, which needs IPython (not installed here) and fails on main too.ruff check,ruff format --check, andmypyon the two changed files pass.PipelineToolcase (BM25 retriever -> PromptBuilder, mock chat generator) was checked with a separate script, not in the added test.Checklist
This PR was fully generated with an AI assistant (Claude Code), including the fix, the test and this description. The checks above are the ones that were actually run.
🤖 Generated with Claude Code