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

agentjido / req_llm / 9e02a5713331885b030771b7caf2759f7ccd926a-PR-98
51%
main: 49%

Build:
Build:
LAST BUILD BRANCH: feat/load-dotenv-config
DEFAULT BRANCH: main
Ran 14 Oct 2025 02:50PM UTC
Jobs 2
Files 69
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

14 Oct 2025 02:49PM UTC coverage: 51.19% (-0.8%) from 52.002%
9e02a5713331885b030771b7caf2759f7ccd926a-PR-98

Pull #98

github

mikehostetler
Refactor assistant message handling in ReqLLM.Context

- Updated `ReqLLM.Context` to streamline the creation of assistant messages, allowing for optional tool calls and metadata.
- Replaced the deprecated `assistant_with_tools` function with a more flexible `assistant` function that accepts tool calls as part of its options.
- Enhanced the `user` function to support both map and keyword list options for metadata.
- Introduced private helper functions for normalizing tool calls and converting content to parts.
- Updated tests to reflect changes in message creation and ensure proper handling of tool calls.

These changes aim to improve the clarity and maintainability of message handling within the ReqLLM library, enhancing the overall functionality of assistant interactions.
Pull Request #98: Refactor context and message handling for tool calls

110 of 305 new or added lines in 20 files covered. (36.07%)

13 existing lines in 6 files now uncovered.

2797 of 5464 relevant lines covered (51.19%)

179.77 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
0.0
0.0% lib/examples/agent.ex
4
50.99
0.0% lib/req_llm/providers/anthropic.ex
5
45.22
1.53% lib/req_llm/providers/groq.ex
5
81.32
-1.83% lib/req_llm/providers/xai.ex
5
28.57
lib/req_llm/tool_call.ex
6
32.43
2.13% lib/req_llm/providers/anthropic/response.ex
6
76.82
-1.17% lib/req_llm/stream_server.ex
8
0.0
0.0% test/support/helpers.ex
10
60.88
-0.88% lib/req_llm/provider/defaults.ex
11
64.09
-0.16% lib/req_llm/providers/openai/responses_api.ex
14
40.0
-25.0% lib/req_llm/providers/anthropic/context.ex
15
66.67
-9.68% lib/req_llm/providers/openai/chat_api.ex
18
0.0
0.0% lib/req_llm/providers/cerebras.ex
23
0.0
0.0% lib/examples/scripts/helpers.ex
24
54.33
-2.2% lib/req_llm/providers/google.ex
40
68.06
-11.59% lib/req_llm/context.ex

Uncovered Existing Lines

Lines Coverage ∆ File
1
0.0
0.0% lib/examples/scripts/helpers.ex
1
66.67
-33.33% lib/req_llm/provider.ex
2
60.88
-0.88% lib/req_llm/provider/defaults.ex
2
40.0
-25.0% lib/req_llm/providers/anthropic/context.ex
3
68.06
-11.59% lib/req_llm/context.ex
4
45.45
-5.19% lib/req_llm/response.ex
Jobs
ID Job ID Ran Files Coverage
1 9e02a5713331885b030771b7caf2759f7ccd926a-PR-98.1 14 Oct 2025 02:50PM UTC 69
51.02
GitHub Action Run
2 9e02a5713331885b030771b7caf2759f7ccd926a-PR-98.2 14 Oct 2025 02:50PM UTC 69
51.16
GitHub Action Run
Source Files on build 9e02a5713331885b030771b7caf2759f7ccd926a-PR-98
  • Tree
  • List 69
  • Changed 23
  • Source Changed 0
  • Coverage Changed 23
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #98
  • PR Base - main (#238938F5...)
  • 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