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

agentjido / req_llm / 73d05073c910ee310af5714438784f28bdea4de6
49%

Build:
DEFAULT BRANCH: main
Ran 16 Oct 2025 12:28PM 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 12:28PM UTC coverage: 50.399% (+0.3%) from 50.084%
73d05073c910ee310af5714438784f28bdea4de6

push

github

web-flow
Refactor: use ReqLLM.ToolCall directly, remove normalization layer (#105)

* chore: clean up whitespace in stream_server.ex

Remove trailing whitespace from documentation and code comments.

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

Co-Authored-By: Claude <noreply@anthropic.com>

* 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>

* Enhance ReqLLM.ToolCall functionality and simplify tool call extraction

- Added new functions to `ReqLLM.ToolCall` for extracting function names, JSON arguments, and decoding arguments into maps.
- Implemented `find_args/2` to streamline the process of locating and decoding arguments from tool calls.
- Refactored `extract_from_tool_calls` in the provider modules to utilize the new `find_args/2` function, improving code clarity and reducing redundancy.
- Introduced comprehensive tests for the new `ToolCall` functionalities, ensuring robust validation of argument extraction and decoding.

This update enhances the usability of tool calls within the ReqLLM library and aligns with the existing API structure.

---------

Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: Mike Hostetler <84222+mikehostetler@users.noreply.github.com>

11 of 15 new or added lines in 6 files covered. (73.33%)

2 existing lines in 1 file now uncovered.

3283 of 6514 relevant lines covered (50.4%)

204.94 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
63.69
1.58% lib/req_llm/provider/defaults.ex
1
54.38
-0.13% lib/req_llm/providers/google.ex
1
70.24
5.4% lib/req_llm/providers/xai.ex
1
75.88
0.0% lib/req_llm/stream_server.ex

Uncovered Existing Lines

Lines Coverage ∆ File
2
39.02
-2.44% lib/req_llm/providers/openai.ex
Jobs
ID Job ID Ran Files Coverage
1 73d05073c910ee310af5714438784f28bdea4de6.1 16 Oct 2025 12:28PM UTC 79
50.23
GitHub Action Run
2 73d05073c910ee310af5714438784f28bdea4de6.2 16 Oct 2025 12:28PM UTC 79
50.4
GitHub Action Run
Source Files on build 73d05073c910ee310af5714438784f28bdea4de6
  • Tree
  • List 79
  • Changed 16
  • Source Changed 0
  • Coverage Changed 16
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 73d05073 on github
  • Prev Build on main (#9A26F336...)
  • Next Build on main (#E271CE3C...)
  • 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