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

agentjido / req_llm / e6d5bc142f2879d6363b3322e3c8c03a11d0abe0
49%

Build:
DEFAULT BRANCH: main
Ran 13 Oct 2025 01:23PM UTC
Jobs 2
Files 67
Run time 3min
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 01:22PM UTC coverage: 48.873% (+0.2%) from 48.682%
e6d5bc142f2879d6363b3322e3c8c03a11d0abe0

push

github

web-flow
Fix Anthropic provider tool result encoding for multi-turn conversations (#94)

Resolves critical bugs preventing tool calling from working with
Anthropic models:

1. Transform :tool role to :user - Anthropic API only accepts "user" or
"assistant"
   roles, not "tool". Tool results must be sent in "user" messages.

2. Encode tool_result content blocks - Previously returned nil, causing
content to be
   filtered out. Now properly encodes with tool_use_id and serialized
output.

Changes:
- lib/req_llm/providers/anthropic/context.ex: Add role transformation
and tool_result encoding
- test/providers/anthropic_test.exs: Add multi-turn tool calling test
- test/req_llm/integration/tool_result_encoding_test.exs: Add
comprehensive provider-agnostic
  test suite for tool result encoding (7 tests covering edge cases)

All tests pass. Multi-turn tool calling now works correctly with
Anthropic models.

5 of 5 new or added lines in 1 file covered. (100.0%)

2689 of 5502 relevant lines covered (48.87%)

177.86 hits per line

Jobs
ID Job ID Ran Files Coverage
1 e6d5bc142f2879d6363b3322e3c8c03a11d0abe0.1 13 Oct 2025 01:23PM UTC 67
48.79
GitHub Action Run
2 e6d5bc142f2879d6363b3322e3c8c03a11d0abe0.2 13 Oct 2025 01:23PM UTC 67
48.82
GitHub Action Run
Source Files on build e6d5bc142f2879d6363b3322e3c8c03a11d0abe0
  • Tree
  • List 67
  • Changed 7
  • Source Changed 0
  • Coverage Changed 7
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • e6d5bc14 on github
  • Prev Build on main (#1347D3B5...)
  • Next Build on main (#85DF690B...)
  • 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