Multiple tool use requests need to have equivalent number of responses in the next message

Created on 26 August 2025, about 1 month ago

Problem/Motivation

If a single Converse message contains multiple tool use requests, the following user message must contain a tool use response for each use call in the previous request. The responses cannot be broken up over multiple messages, which is what is currently happening and results in an exception.

Steps to reproduce

Invoke an agent that will call multiple tools as part of the same assistant message.
Get an exception stating that tool with an ID was expected to have a response in the next user message.

Proposed resolution

If tools are requested to be used together in one message, the next message must have content that fulfills both tool requests.

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Active

Version

1.1

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States lpeabody

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024