[BUG] invalid_request_error

Status Closed — duplicate
Maintainer reply None cached
Activity 1 comment · opened Jul 15, 2025 · closed Sep 18, 2025

API Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"messages.5: tool_use
ids were found without tool_result blocks immediately after: toolu_01SWBkC2GPGhoSfEqTZ6y91b. Each
tool_use block must have a corresponding tool_result block in the next message."}}

View original on GitHub ↗

This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗