Skip to content

Messages following tool_use blocks must begin with a matching number of tool_result blocks. #451

@jvjfranca-auramind

Description

@jvjfranca-auramind

Hi,

Im getting the same issue that was fixed on #389 using ChatBedrockConverse.

An error occurred (validationException) when calling the ConverseStream operation: The model returned the following errors: messages.48: Did not find 1 tool_result block(s) at the beginning of this message. Messages following tool_use blocks must begin with a matching number of tool_result blocks.

Using - langchain-aws 0.2.18

Should I go back to ChatBedrock?

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions