Repository navigation
feat: instrument tool call spans - #191
Conversation
📝 WalkthroughWalkthroughThis PR adds observability instrumentation to tool execution in the toolset module. Tool calls are now wrapped in ChangesTool Execution Observability
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
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 |
There was a problem hiding this comment.
🧹 Nitpick comments (1)
coding-agent/tests/agentkit/tools/test_toolset.py (1)
1011-1013: 💤 Low valueUse standard return type annotation syntax.
The return type annotation
-> (None)is non-idiomatic Python. The parentheses serve no purpose for a simpleNonereturn type and should be removed.📝 Suggested fix
For all three functions, change:
-async def test_function_name() -> ( - None -): +async def test_function_name() -> None:Also applies to: 1072-1074, 1279-1281
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@coding-agent/tests/agentkit/tools/test_toolset.py` around lines 1011 - 1013, The test function test_toolset_call_tool_rejects_invalid_proxy_arguments_before_execution (and the two other test functions flagged) use the non-idiomatic return annotation "-> (None)"; update each function signature to use the standard annotation "-> None" (search for function signatures containing "-> (None)" and replace with "-> None") so the return type follows normal Python syntax.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Nitpick comments:
In `@coding-agent/tests/agentkit/tools/test_toolset.py`:
- Around line 1011-1013: The test function
test_toolset_call_tool_rejects_invalid_proxy_arguments_before_execution (and the
two other test functions flagged) use the non-idiomatic return annotation "->
(None)"; update each function signature to use the standard annotation "-> None"
(search for function signatures containing "-> (None)" and replace with "->
None") so the return type follows normal Python syntax.
ℹ️ Review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro Plus
Run ID: 96de8115-9556-4139-8bdc-c8d9ae5980f3
📒 Files selected for processing (2)
coding-agent/src/agentkit/tools/toolset.pycoding-agent/tests/agentkit/tools/test_toolset.py
Summary
Verification
Summary by CodeRabbit
New Features
Bug Fixes