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

agentjido / req_llm / 384594a252082a2e360a1388eb999e7b808c8b22
49%

Build:
DEFAULT BRANCH: main
Ran 15 Oct 2025 08:09PM UTC
Jobs 2
Files 79
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

15 Oct 2025 08:08PM UTC coverage: 49.877% (+2.0%) from 47.837%
384594a252082a2e360a1388eb999e7b808c8b22

push

github

web-flow
Add AWS Bedrock provider with streaming support (#66)

* Add example scripts for context reuse, cross-model context, and reasoning tokens

- Introduced new example scripts demonstrating various functionalities of the ReqLLM library, including:
  - `context_reuse.exs`: Shows how the same context can be passed between different API functions without modifications.
  - `context_cross_model.exs`: Demonstrates context reuse across different models and providers.
  - `reasoning_tokens.exs`: Illustrates reasoning token usage with models that support extended thinking.
  - `run_all.sh`: A script to run all example scripts sequentially for demonstration purposes.

- Updated README.md to include usage instructions and examples for the new scripts, enhancing documentation and usability for users.

This commit aims to enrich the library's examples and improve user experience by providing runnable scripts for various functionalities.

* Add AWS Bedrock provider with streaming support

Implements AWS Bedrock provider with pluggable streaming protocol architecture.

Features:
- Support for Anthropic Claude models on AWS Bedrock
- Streaming and non-streaming request support
- AWS Event Stream binary protocol parser (not SSE)
- AWS Signature V4 authentication using aws_auth fork (OTP 27 compatible)
- Pluggable streaming via parse_stream_protocol/2 callback
- Dependency injection in StreamServer for protocol parsers
- Comprehensive test suite with fixtures

The streaming implementation allows providers to use custom protocols while maintaining a consistent interface. Bedrock uses AWS Event Stream format while other providers default to SSE.

* Rename Bedrock to AmazonBedrock and address all review feedback

- Rename all modules from Bedrock to AmazonBedrock per review request
- Use :amazon_bedrock provider ID to match upstream models.dev
- Move AWS Event Stream parser under AmazonBedrock namespace
- Remove debug.log file
- Revert changes to priv/models_dev/amazon-bedro... (continued)

346 of 518 new or added lines in 12 files covered. (66.8%)

5 existing lines in 3 files now uncovered.

3255 of 6526 relevant lines covered (49.88%)

180.98 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
88.89
lib/req_llm/providers/amazon_bedrock/response.ex
1
71.67
-1.21% lib/req_llm/tool.ex
2
91.3
lib/req_llm/providers/amazon_bedrock/anthropic.ex
4
75.88
-0.94% lib/req_llm/stream_server.ex
5
85.71
lib/req_llm/providers/amazon_bedrock/meta.ex
8
82.22
lib/req_llm/providers/amazon_bedrock/openai.ex
24
55.56
lib/req_llm/providers/amazon_bedrock/aws_event_stream.ex
24
78.76
lib/req_llm/providers/amazon_bedrock/converse.ex
27
38.64
lib/req_llm/providers/amazon_bedrock/sts.ex
76
57.06
lib/req_llm/providers/amazon_bedrock.ex

Uncovered Existing Lines

Lines Coverage ∆ File
1
83.33
-16.67% lib/req_llm/provider.ex
2
60.19
0.94% lib/req_llm/provider/defaults.ex
2
39.02
-2.44% lib/req_llm/providers/openai.ex
Jobs
ID Job ID Ran Files Coverage
1 384594a252082a2e360a1388eb999e7b808c8b22.1 15 Oct 2025 08:09PM UTC 79
49.76
GitHub Action Run
2 384594a252082a2e360a1388eb999e7b808c8b22.2 15 Oct 2025 08:09PM UTC 79
49.87
GitHub Action Run
Source Files on build 384594a252082a2e360a1388eb999e7b808c8b22
  • Tree
  • List 79
  • Changed 11
  • Source Changed 0
  • Coverage Changed 11
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 384594a2 on github
  • Prev Build on main (#D7E9D6D7...)
  • Next Build on main (#C97D9375...)
  • 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