mirror of
https://github.com/rowboatlabs/rowboat.git
synced 2026-05-16 18:25:17 +02:00
When the Anthropic API returns multiple parallel tool calls in a single assistant message, all tool_result blocks must be sent together in the next message. Previously, each tool result was sent as a separate message, causing Anthropic's API to reject the request with: "tool_use ids were found without tool_result blocks immediately after" This change modifies convertFromMessages() to merge consecutive tool messages into a single message containing all tool_result content blocks. Fixes #375 |
||
|---|---|---|
| .. | ||
| apps | ||
| packages | ||
| .gitignore | ||
| eslint.config.mts | ||
| package.json | ||
| pnpm-lock.yaml | ||
| pnpm-workspace.yaml | ||
| tsconfig.base.json | ||