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

agentjido / req_llm
49%
main: 50%

Build:
Build:
LAST BUILD BRANCH: feature/upgrade-ex-aws-auth
DEFAULT BRANCH: main
Repo Added 15 Sep 2025 11:42AM UTC
Token Qrw4J5oDDoi2zjHqBZDp1Hok4eVoONJAy regen
Build 180 Last
Files 79
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

LAST BUILD ON BRANCH egomes/fix-claude-multi-turn
branch: egomes/fix-claude-multi-turn
CHANGE BRANCH
x
Reset
Sync Branches
  • egomes/fix-claude-multi-turn
  • add-vllm-provider
  • bedrock-clean
  • bug/api-return-types
  • bug/codec-tool-calls
  • bug/debug-stream-return
  • bug/incorrect-model-spec-docs
  • bug/openai-tool-calls
  • bug/streaming-race-condition
  • cerebras
  • chore/2025-10-14-update-fixtures
  • chore/object-fixtures
  • chore/object-fixtures-resurrected
  • chore/refine-fixtures
  • chore/refresh-coverage-tests
  • chore/update-models-2025-09-21
  • copilot/fix-32
  • devtools
  • feat/context-json-serialization
  • feat/google-upload-file
  • feat/in-type-support
  • feat/structured-output-openai-google
  • feature/cerebras-provider
  • feature/model-catalog
  • feature/normalize-bedrock-inference-profiles
  • feature/pre-release-fixes
  • feature/refactor-llm-api-fixtures
  • feature/refined-key-management
  • feature/unique-model-provider-options
  • feature/upgrade-ex-aws-auth
  • feature/zai-fixtures
  • fix-anthropic-streaming
  • fix-duplicate-clause
  • fix-google
  • fix-groq-stream-error
  • fix-mix-task-docs
  • fix-openai-max-tokens-param
  • fix/cost-calculation-in-usage
  • fix/google-file-support
  • fix/google-structured-output
  • fix/issue-65-http-status-validation
  • fix/issue-96-validation-error-fields
  • fix/proxy-options
  • fix/registry-get-provider-nil-module
  • fix/tool_calls
  • google-vision
  • improve-metadata-provider-errors
  • main
  • patch-1
  • put-max-tokens-model-options
  • refactor/context-tools
  • refactor/req-streaming
  • refactor/xai-structured-objects
  • remove-jido-keys
  • zai

11 Oct 2025 01:29AM UTC coverage: 48.891% (+0.2%) from 48.682%
159d39f357ad33b30d5c6328587075e1bcd51591-PR-94

Pull #94

github

lostbean
Fix Anthropic provider tool result encoding for multi-turn conversations

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.
Pull Request #94: fix(anthropic): Provider tool result encoding for multi-turn conversations

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

2690 of 5502 relevant lines covered (48.89%)

177.66 hits per line

Relevant lines Covered
Build:
Build:
5502 RELEVANT LINES 2690 COVERED LINES
177.66 HITS PER LINE
Source Files on egomes/fix-claude-multi-turn
  • Tree
  • List 67
  • Changed 15
  • Source Changed 0
  • Coverage Changed 15
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
159d39f3... egomes/fix-claude-multi-turn Fix Anthropic provider tool result encoding for multi-turn conversations Resolves critical bugs preventing tool calling from working with Anthropic models: 1. Transform :tool role to :user - Anthropic API only accepts "user" or "assistant" ro... Pull #94 13 Oct 2025 01:18PM UTC lostbean github
48.89
See All Builds (180)

Badge your Repo: req_llm

We detected this repo isn’t badged! Grab the embed code to the right, add it to your repo to show off your code coverage, and when the badge is live hit the refresh button to remove this message.

Could not find badge in README.

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

Refresh
  • Settings
  • Repo on GitHub
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