Skip to content

Multi-turn interaction is not supported for observation type: ASK_USER

0

I have created a prompt flow using amazon bedrock . The prompt flow image is attached below . When my control is passed over to the agent node and the agent attempts to ask the user for more information I am seeing this error . Do we have a way to get around this issue . The prompt flow works as expected if I am passing all the required parameters for agent in one input .Prompt flow

asked 2 years ago515 views

2 Answers
2
Accepted Answer

Currently, the agent doesn't support multi-turn invocations. You can't configure return of control for the agent in a flow.

[+] https://docs.aws.amazon.com/bedrock/latest/userguide/flows-nodes.html#flows-nodes-data

AWS
EXPERT

answered 2 years ago

EXPERT

reviewed 2 years ago

2

Thank you for providing information about the issue you're experiencing with your Amazon Bedrock prompt flow. Based on the information you've shared, I can provide some insight into the problem and potential limitations.

Currently, Amazon Bedrock's prompt flow feature does not support multi-turn interactions within the agent node. This means that if the agent attempts to ask the user for more information during the flow execution, it will result in the error you're seeing: "Multi-turn interaction is not supported for observation type: ASK_USER".

This limitation is a known constraint of the current implementation of prompt flows in Amazon Bedrock. The agent node is designed to process a single input and provide a single output, rather than engaging in a back-and-forth conversation within the flow.

As you've noted, the prompt flow works as expected when you provide all the required parameters for the agent in a single input. This is the recommended approach for now. To work around this limitation, you have a few options:

  1. Ensure that all necessary information is collected and provided to the agent node upfront, before invoking the flow.

  2. If you need to gather additional information, consider breaking your flow into multiple separate flows, where each flow handles a specific part of the interaction. You can then manage the multi-turn interaction at the application level, invoking different flows as needed.

  3. Use a combination of other node types (such as condition nodes and prompt nodes) to handle different scenarios based on the initial input, rather than relying on the agent to ask for additional information.

Unfortunately, there isn't a direct way to enable multi-turn interactions within a single prompt flow execution at this time. If this functionality is critical for your use case, you may want to consider providing feedback to the Amazon Bedrock team about this limitation, as they may consider adding support for multi-turn interactions in future updates.
Sources
Node types in prompt flow - Amazon Bedrock
Create a prompt flow in Amazon Bedrock - Amazon Bedrock
Test a prompt flow in Amazon Bedrock - Amazon Bedrock

answered 2 years ago

EXPERT

reviewed 2 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.