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

agentjido / req_llm / 9e02a5713331885b030771b7caf2759f7ccd926a-PR-98

14 Oct 2025 02:49PM UTC coverage: 51.19% (-0.8%) from 52.002%
9e02a5713331885b030771b7caf2759f7ccd926a-PR-98

Pull #98

github

mikehostetler
Refactor assistant message handling in ReqLLM.Context

- Updated `ReqLLM.Context` to streamline the creation of assistant messages, allowing for optional tool calls and metadata.
- Replaced the deprecated `assistant_with_tools` function with a more flexible `assistant` function that accepts tool calls as part of its options.
- Enhanced the `user` function to support both map and keyword list options for metadata.
- Introduced private helper functions for normalizing tool calls and converting content to parts.
- Updated tests to reflect changes in message creation and ensure proper handling of tool calls.

These changes aim to improve the clarity and maintainability of message handling within the ReqLLM library, enhancing the overall functionality of assistant interactions.
Pull Request #98: Refactor context and message handling for tool calls

110 of 305 new or added lines in 20 files covered. (36.07%)

13 existing lines in 6 files now uncovered.

2797 of 5464 relevant lines covered (51.19%)

179.77 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/lib/examples/scripts/helpers.ex


Source Not Available

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