• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

agentjido / req_llm / cd102022105135b91a6ffa04f71b81add5cc4f78-PR-129

25 Oct 2025 12:18PM UTC coverage: 51.023% (+0.05%) from 50.978%
cd102022105135b91a6ffa04f71b81add5cc4f78-PR-129

Pull #129

github

lostbean
fix: Handle JSON Schema in Tool.Inspect protocol

The Tool Inspect protocol was crashing when inspecting tools with
JSON Schema (map) parameter schemas because it only handled
NimbleOptions (keyword list) format.

Changes:
- Updated Inspect protocol to check if parameter_schema is list or map
- For lists (NimbleOptions): Show param count (e.g., "2 params")
- For maps (JSON Schema): Show param count from properties field
  with "(JSON Schema)" suffix (e.g., "2 params (JSON Schema)")
- Handle empty schemas for both formats appropriately

Tests:
- Added 4 new test cases covering NimbleOptions and JSON Schema
  formats with both populated and empty parameter schemas
- Fixed trailing whitespace in existing test
- All 29 tests passing
Pull Request #129: fix: Handle JSON Schema in Tool.Inspect protocol

7 of 8 new or added lines in 1 file covered. (87.5%)

3367 of 6599 relevant lines covered (51.02%)

444.74 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

82.61
/lib/req_llm/tool.ex


Source Not Available

STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc