Skip to content

[FEATURE] Allow ToolUse as latest message #561

@Unshure

Description

@Unshure

Problem Statement

Today, Strands Agents will fail if the latest message in the messages array is a ToolUse message

Proposed Solution

Allow ToolUse to be the latest message in the messages array. In the event loop, if the latest message is a ToolUse, then execute that tool instead of invoking the model.

Use Case

Alternatives Solutions

No response

Additional Context

No response

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions