Repository navigation
fix(agentic_rag): return calculate tool result - #19012
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (2)
Included review availability: Your plan provides up to 10 included reviews per hour; 8 remain after this review. 📝 WalkthroughWalkthroughThe calculate executor now reads the result from ChangesCalculate result handling
Estimated code review effort: 2 (Simple) | ~10 minutes Merge Risk: ⚪ Minimal · up to This focused fix restores calculated values in the existing tool response and adds regression coverage without changing access, dispatch, persistence, dependencies, or deployment behavior. No actionable merge-blocking risk remains. Suggested reviewers: Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
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 |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #19012 +/- ##
==========================================
+ Coverage 30.43% 39.07% +8.64%
==========================================
Files 54 54
Lines 14911 14911
Branches 117 117
==========================================
+ Hits 4538 5827 +1289
+ Misses 10361 9058 -1303
- Partials 12 26 +14 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Summary
valueproduced bycompute_from_factsas the calculate tool resultProblem
compute_from_factsreturns successful calculations under its documentedvaluekey._exec_calculateinstead readresultandcomputed_value, so every successful calculation was sent back to the action model with null result fields.This is a focused follow-up to the agentic search refactor in #19000.
Test plan
uv run --no-project --python 3.13 --with pytest --with pytest-asyncio --with langchain-core --with langgraph --with json-repair pytest --confcutdir=test/unit_test/rag/advanced_rag test/unit_test/rag/advanced_rag/test_action_session.py -quvx ruff check test/unit_test/rag/advanced_rag/test_action_session.pyuvx ruff check --select E9,F63,F7,F82 rag/advanced_rag/harness/action_session.pyuvx ruff format --check rag/advanced_rag/harness/action_session.py test/unit_test/rag/advanced_rag/test_action_session.py