invokeFlow
abstract suspend fun <T> invokeFlow(input: InvokeFlowRequest, block: suspend (InvokeFlowResponse) -> T): T
Invokes an alias of a flow to run the inputs that you specify and return the output of each node as a stream. If there's an error, the error is returned. For more information, see Test a flow in Amazon Bedrock in the Amazon Bedrock User Guide.
The CLI doesn't support streaming operations in Amazon Bedrock, including InvokeFlow
.