Closed marklysze closed 1 week ago
Attention: Patch coverage is 0%
with 34 lines
in your changes missing coverage. Please review.
Project coverage is 15.47%. Comparing base (
89c2f20
) to head (e68d181
). Report is 1 commits behind head on main.
Files | Patch % | Lines |
---|---|---|
autogen/oai/anthropic.py | 0.00% | 34 Missing :warning: |
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
There was a bug that appeared in some workflows where a message role was not 'assistant' when it contained a 'tool_use' block. This isn't accepted by Anthropic and throws an exception.
This code has more robust alternating role management in the messages.
NOTE: There's still another outstanding issue when running two tools consecutively in the messages. This requires message merging and will be done in a separate PR.
Checks