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

agentjido / req_llm / 430f3843e68c4d889f6485cde1d78c0b42c05204-PR-105
50%
main: 49%

Build:
Build:
LAST BUILD BRANCH: feat/load-dotenv-config
DEFAULT BRANCH: main
Ran 16 Oct 2025 10:40AM UTC
Jobs 2
Files 79
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

16 Oct 2025 10:34AM UTC coverage: 50.015% (-0.02%) from 50.031%
430f3843e68c4d889f6485cde1d78c0b42c05204-PR-105

Pull #105

github

Valian
refactor: use ReqLLM.ToolCall directly, remove normalization

Remove the normalization layer that converted tool calls to plain maps.
Since `ReqLLM.ToolCall` (based on `Req.ToolCall`) already exists as a
proper struct representation, there's no reason to introduce another
intermediate representation.

Changes:
- Remove `normalize_tool_call/1` from ReqLLM.Response
- Remove fallback logic for ContentPart-based tool calls (`:tool_result`
  content part type no longer exists in ContentPart)
- Update all tests to expect `ReqLLM.ToolCall` structs with
  `%{function: %{name: ..., arguments: ...}, id: ...}` structure
- Remove redundant pattern match in XAI provider

This simplifies the API and aligns with existing Req patterns.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
Pull Request #105: Refactor: use ReqLLM.ToolCall directly, remove normalization layer

1 of 2 new or added lines in 2 files covered. (50.0%)

1 existing line in 1 file now uncovered.

3261 of 6520 relevant lines covered (50.02%)

198.49 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
75.88
0.0% lib/req_llm/stream_server.ex

Uncovered Existing Lines

Lines Coverage ∆ File
1
72.41
-3.45% lib/req_llm/providers/openai/param_profiles.ex
Jobs
ID Job ID Ran Files Coverage
1 430f3843e68c4d889f6485cde1d78c0b42c05204-PR-105.1 16 Oct 2025 10:40AM UTC 79
49.89
GitHub Action Run
2 430f3843e68c4d889f6485cde1d78c0b42c05204-PR-105.2 16 Oct 2025 10:40AM UTC 79
50.02
GitHub Action Run
Source Files on build 430f3843e68c4d889f6485cde1d78c0b42c05204-PR-105
  • Tree
  • List 79
  • Changed 4
  • Source Changed 0
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #105
  • PR Base - main (#83899338...)
  • Delete
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

© 2026 Coveralls, Inc