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

agentjido / req_llm / 98ddb061b9d839e52ea022c24c28893781d527cb-PR-98

13 Oct 2025 04:04PM UTC coverage: 51.711% (-0.3%) from 52.002%
98ddb061b9d839e52ea022c24c28893781d527cb-PR-98

Pull #98

github

mikehostetler
Refactor context and message handling for tool calls

- Updated `ReqLLM.Context` to replace `push_user`, `push_assistant`, and `push_system` with `append` and `prepend` methods for better clarity and consistency.
- Introduced `ReqLLM.ToolCall` struct to represent tool calls, aligning with OpenAI's API format.
- Modified message structures to utilize `tool_calls` instead of content parts for tool-related interactions.
- Enhanced encoding and decoding processes across providers to support the new tool call structure.
- Removed deprecated content part types related to tool calls and results, streamlining the message handling logic.
- Updated tests to reflect changes in tool call handling and ensure compatibility with existing functionality.

This refactor aims to improve the clarity and maintainability of the codebase while ensuring robust handling of tool calls in conversations.
Pull Request #98: Refactor context and message handling for tool calls

52 of 99 new or added lines in 10 files covered. (52.53%)

7 existing lines in 3 files now uncovered.

2766 of 5349 relevant lines covered (51.71%)

184.67 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