Skip to content

hotfix(cli): guard async_subagents kwarg for sdk 0.4.x compat#1931

Merged
Mason Daugherty (mdrxy) merged 1 commit intomainfrom
mdrxy/temp-compat
Mar 16, 2026
Merged

hotfix(cli): guard async_subagents kwarg for sdk 0.4.x compat#1931
Mason Daugherty (mdrxy) merged 1 commit intomainfrom
mdrxy/temp-compat

Conversation

@mdrxy
Copy link
Copy Markdown
Member

PR #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.

@github-actions github-actions bot added cli Related to `deepagents-cli` internal User is a member of the `langchain-ai` GitHub organization size: S 50-199 LOC labels Mar 16, 2026
@mdrxy Mason Daugherty (mdrxy) merged commit ad96ae9 into main Mar 16, 2026
27 checks passed
@mdrxy Mason Daugherty (mdrxy) deleted the mdrxy/temp-compat branch March 16, 2026 22:06
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cli Related to `deepagents-cli` internal User is a member of the `langchain-ai` GitHub organization size: S 50-199 LOC

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant