chore(langchain): add overloads to `create_agent`
by cbornet
·
Feb 06, 2026 at 19:31 UTC
·
scan-1ca53528708c5869
Get this automatically on every PR
Install the Axiomo GitHub App to get Signals as check runs and PR comments on every pull request.
Risk level: Low (20%)
Add overloads to `create_agent` for better mypy type inference.
Added `overload` in `factory.py`.
Overloads help in type inference enhancement in `factory.py`.
No evidence of broken functionality, but tests changes slightly in `test_shell_tool_integration.py`.
Trusted contributor with 398 merged PRs. maintains 129 public repositories. has 177 followers.
Review 1 high-priority file(s)
libs/langchain_v1/langchain/agents/factory.py
+78
78 lines changed; Source code
libs/langchain_v1/tests/integration_tests/agents/middleware/test_shell_tool_integration.py
+12
Source code
libs/langchain_v1/langchain/agents/middleware/types.py
+4
Source code
20
minutes to review
medium
effort level
none
staleness risk
Standard review process
Good evidence, acceptable risk, ready for merge
Why is security_scan_clean missing? Consider adding this check.
Why is coverage_maintained missing? Consider adding this check.