Skip to content

"Each tool_use block must have a corresponding tool_result block in the next message" when interrupting Sonnet 4.5 convo during tool call #3230

Description

@hellowodl

AI_APICallError: messages.125: `tool_use` ids were found without `tool_result` blocks immediately after: toolu_016GGBqBmVVf9JWMNFbWA781. Each `tool_use` block must have a corresponding `tool_result` block in the next message.

This error presents itself when I interrupt a conversation whilst a tool call is active and hasn't responded.
The model is Sonnet 4.5

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions