Skip to content

[python/deepagents] breaking: keep config, tool results and cancellation - #618

Merged
DABH merged 3 commits into
mainfrom
fix/deepagents-call-config-and-tool-results
Nov 17, 2026
Merged

DABH merged 3 commits into
mainfrom
fix/deepagents-call-config-and-tool-results

Conversation

@DABH

@DABH DABH commented Nov 17, 2026

Copy link
Copy Markdown
Contributor

This PR forwards JSON-safe RunnableConfig through model and wrapped-tool calls, preserves paired tool artifacts, error status and model call IDs, and closes cancelled run_deep_agent Workflows as cancelled. New wrapped calls with return_direct=True fail 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.

DABH added 3 commits November 16, 2026 22:09
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.
@DABH
DABH requested a review from a team as a code owner November 17, 2026 04:28
@DABH DABH changed the title [python/deepagents] Keep call config, tool results and cancellation [python/deepagents] breaking: keep config, tool results and cancellation Nov 17, 2026

@campoy campoy left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@DABH
DABH merged commit 911c96e into main Nov 17, 2026
29 checks passed
@DABH
DABH deleted the fix/deepagents-call-config-and-tool-results branch November 17, 2026 05:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants