Skip to content

Commit c74205b

Browse files
committed
fix tool call responses
1 parent e15f064 commit c74205b

File tree

1 file changed

+1
-1
lines changed
  • integrations/aws-strands/python/src/ag_ui_strands

1 file changed

+1
-1
lines changed

integrations/aws-strands/python/src/ag_ui_strands/agent.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ async def run(self, input_data: RunAgentInput) -> AsyncIterator[Any]:
219219
user_message = "Hello"
220220
if input_data.messages:
221221
for msg in reversed(input_data.messages):
222-
if msg.role == "user" and msg.content:
222+
if (msg.role == "user" or msg.role == "tool") and msg.content:
223223
user_message = msg.content
224224
break
225225

0 commit comments

Comments
 (0)