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

agentjido / req_llm / 98ddb061b9d839e52ea022c24c28893781d527cb-PR-98
51%
main: 52%

Build:
Build:
LAST BUILD BRANCH: fix/jsv-preserve-original-data
DEFAULT BRANCH: main
Ran 13 Oct 2025 04:05PM 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

13 Oct 2025 04:04PM UTC coverage: 51.711% (-0.3%) from 52.002%
98ddb061b9d839e52ea022c24c28893781d527cb-PR-98

Pull #98

github

mikehostetler
Refactor context and message handling for tool calls

- Updated `ReqLLM.Context` to replace `push_user`, `push_assistant`, and `push_system` with `append` and `prepend` methods for better clarity and consistency.
- Introduced `ReqLLM.ToolCall` struct to represent tool calls, aligning with OpenAI's API format.
- Modified message structures to utilize `tool_calls` instead of content parts for tool-related interactions.
- Enhanced encoding and decoding processes across providers to support the new tool call structure.
- Removed deprecated content part types related to tool calls and results, streamlining the message handling logic.
- Updated tests to reflect changes in tool call handling and ensure compatibility with existing functionality.

This refactor aims to improve the clarity and maintainability of the codebase while ensuring robust handling of tool calls in conversations.
Pull Request #98: Refactor context and message handling for tool calls

52 of 99 new or added lines in 10 files covered. (52.53%)

7 existing lines in 3 files now uncovered.

2766 of 5349 relevant lines covered (51.71%)

184.67 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
0.0
0.0% lib/examples/agent.ex
2
0.0
0.0% lib/examples/scripts/helpers.ex
2
62.3
0.54% lib/req_llm/provider/defaults.ex
3
83.77
4.12% lib/req_llm/context.ex
5
28.57
lib/req_llm/tool_call.ex
6
32.43
2.13% lib/req_llm/providers/anthropic/response.ex
12
41.67
-23.33% lib/req_llm/providers/anthropic/context.ex
16
54.89
-1.64% lib/req_llm/providers/google.ex

Uncovered Existing Lines

Lines Coverage ∆ File
1
72.41
-3.45% lib/req_llm/providers/openai/param_profiles.ex
2
41.67
-23.33% lib/req_llm/providers/anthropic/context.ex
4
45.45
-5.19% lib/req_llm/response.ex
Jobs
ID Job ID Ran Files Coverage
1 98ddb061b9d839e52ea022c24c28893781d527cb-PR-98.1 13 Oct 2025 04:05PM UTC 69
51.7
GitHub Action Run
2 98ddb061b9d839e52ea022c24c28893781d527cb-PR-98.2 13 Oct 2025 04:05PM UTC 69
51.63
GitHub Action Run
Source Files on build 98ddb061b9d839e52ea022c24c28893781d527cb-PR-98
  • Tree
  • List 69
  • Changed 17
  • Source Changed 0
  • Coverage Changed 17
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

© 2025 Coveralls, Inc