Skip to content

Bad Request - tool_result block must have a corresponding tool_use #1159

@nikhilp0

Description

@nikhilp0

Describe the bug

✗ Execution failed: Error: Failed to get response from the AI model; retried 5 times (total retry wait time: 82.05218624760536 seconds) (Request-ID 3B80:7355D:317C15:3B68D0:69799605) Last error: CAPIError: 400 messages.2.content.1: unexpected tool_use_id found in tool_result blocks: toolu_vrtx_015ivZnCHtX8ndKTNpHXMiuG. Each tool_result block must have a corresponding tool_use block in the previous message.

Affected version

v0.0.396

Steps to reproduce the behavior

No response

Expected behavior

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions