We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2c90377 commit 95d315fCopy full SHA for 95d315f
integrations/aws-strands/python/src/ag_ui_strands/agent.py
@@ -97,7 +97,7 @@ async def run(self, input_data: RunAgentInput) -> AsyncIterator[Any]:
97
user_message = "Hello"
98
if input_data.messages:
99
for msg in reversed(input_data.messages):
100
- if msg.role == "user" and msg.content:
+ if (msg.role == "user" or msg.role == "tool") and msg.content:
101
user_message = msg.content
102
break
103
0 commit comments