FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Each `tool_use` block must have a corresponding `tool_result` block in the next message · Issue #3504 · google/adk-python · GitHub

Each tool_use block must have a corresponding tool_result block in the next message #3504

Description

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

  1. Using cloude4.5 mounted by litellm, if there is no response from the tool call in the conversation, the above error will be reported.
  2. You can no longer continue the conversation in this session.

Metadata

Metadata

Labels

models[Component] This issue is related to model support

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions


Back | FazBrowse Home | New Git URL