google/adk-python
Describe the bug
The detail error message like below:
litellm.exceptions.BadRequestError: litellm.BadRequestError: AnthropicException - {"type":"error","error":{"type":"invalid_request_error","message":"messages.4: tool_use ids were found without tool_result blocks immediately after: toolu_014qrA41Neqm6NHZTstHQfCm. Each tool_use block must have a corresponding tool_result block in the next message."},"request_id":"req_011CV3JFQ1toRhQLqcqR7KDE"}
To Reproduce
- Using cloude4.5 mounted by litellm, if there is no response from the tool call in the conversation, the above error will be reported.
- You can no longer continue the conversation in this session.
Reactions are currently unavailable
google/adk-python
Describe the bug
The detail error message like below:
litellm.exceptions.BadRequestError: litellm.BadRequestError: AnthropicException - {"type":"error","error":{"type":"invalid_request_error","message":"messages.4: tool_use ids were found without tool_result blocks immediately after: toolu_014qrA41Neqm6NHZTstHQfCm. Each tool_use block must have a corresponding tool_result block in the next message."},"request_id":"req_011CV3JFQ1toRhQLqcqR7KDE"}
To Reproduce