Repository navigation
[python/deepagents] breaking: keep config, tool results and cancellation - #618
Merged
Merged
Conversation
Forward per-call model and tool configuration so configurable models use the requested values. Keep a wrapped tool's artifact, error status and model call ID instead of returning only its content. Retain the earlier tool behavior and UUID consumption for existing runs through a patch marker. Refuse return_direct on new wrapped calls before the Activity runs, since the wrapper cannot preserve that graph behavior.
Let new cancellations close the Workflow as canceled. Keep the old error wrapper when replaying histories that may catch it and schedule cleanup.
Replay a retained TemporalModel cache hit with per-call configuration. A cache miss would add an Activity to a history recorded without one. Keep the tool fixture's replay major explicit for the Public Preview.
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.
This PR forwards JSON-safe
RunnableConfigthrough model and wrapped-tool calls, preserves paired tool artifacts, error status and model call IDs, and closes cancelledrun_deep_agentWorkflows as cancelled. New wrapped calls withreturn_direct=Truefail before the Activity runs.Patch markers preserve earlier tool results, configuration, UUID consumption and cancellation failure or cleanup paths for existing 0.x runs. Model configuration changes only Activity inputs. Tests cover native calls, streaming, concurrency, retained cache hits, and old and new cancellation histories.
Validated with
make lint, the full suite and #615's restored 0.x histories. See #608 for the matching tool limits.