hotfix(cli): guard async_subagents kwarg for sdk 0.4.x compat#1931
Merged
Mason Daugherty (mdrxy) merged 1 commit intomainfrom Mar 16, 2026
Merged
hotfix(cli): guard async_subagents kwarg for sdk 0.4.x compat#1931Mason Daugherty (mdrxy) merged 1 commit intomainfrom
async_subagents kwarg for sdk 0.4.x compat#1931Mason Daugherty (mdrxy) merged 1 commit intomainfrom
Conversation
james8814
pushed a commit
to james8814/deepagents
that referenced
this pull request
Mar 17, 2026
…chain-ai#1931) PR langchain-ai#1758 landed CLI code that passes `async_subagents` to `create_deep_agent()`, but the CLI still pins SDK 0.4.x which doesn't accept that kwarg — meaning even `async_subagents=None` raises `TypeError` at runtime. This switches to a conditional `**kwargs` pattern so the kwarg is only passed when async subagents are actually configured, keeping the CLI compatible with the pinned SDK until 0.5.0 ships.
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.
PR #1758 landed CLI code that passes
async_subagentstocreate_deep_agent(), but the CLI still pins SDK 0.4.x which doesn't accept that kwarg — meaning evenasync_subagents=NoneraisesTypeErrorat runtime. This switches to a conditional**kwargspattern so the kwarg is only passed when async subagents are actually configured, keeping the CLI compatible with the pinned SDK until 0.5.0 ships.