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

agentjido / req_llm / e6d5bc142f2879d6363b3322e3c8c03a11d0abe0 / 1
49%
main: 49%

Build:
DEFAULT BRANCH: main
Ran 13 Oct 2025 01:23PM UTC
Files 67
Run time 3s
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.789% (+0.2%) from 48.561%
e6d5bc142f2879d6363b3322e3c8c03a11d0abe0.1

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.

2680 of 5493 relevant lines covered (48.79%)

88.9 hits per line

Source Files on job e6d5bc142f2879d6363b3322e3c8c03a11d0abe0.1
  • Tree
  • List 67
  • Changed 6
  • Source Changed 0
  • Coverage Changed 6
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 0
  • e6d5bc14 on github
  • Prev Job for on main (#1347d3b500204b4e96b7f468ebf9d549476de705.2)
  • Next Job for on main (#85df690ba8bcffaacde41f6f48320cc255ae120a.2)
  • 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