fix(langchain): handle ToolNode in create_react_agent tool iteration#4081
fix(langchain): handle ToolNode in create_react_agent tool iteration#4081
Conversation
|
Dvir Rezenman seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account. You have signed the CLA already but the status is still pending? Let us recheck it. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughThe pull request enhances the OpenTelemetry LangChain instrumentation to robustly handle tools wrapped in LangChain's ToolNode by introducing a fallback iteration mechanism that checks for ChangesAgent Tool Wrapper Enhancement
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Fixes #3841 — TypeError: ToolNode object is not iterable when using langgraph-supervisor with create_react_agent
Fixes #3921 — same root cause as #3841, duplicate issue
Summary by CodeRabbit
Bug Fixes
Tests