package com.google.sps.agents;
 
// Imports the Google Cloud client library
import com.google.cloud.dialogflow.v2.QueryInput;
import com.google.cloud.dialogflow.v2.QueryResult;
import com.google.protobuf.Struct;
import com.google.protobuf.Value;
import com.google.sps.data.Output;
import com.google.sps.agents.Agent;
import java.io.IOException;
import java.util.Map;
 
/**
 * Currency Agent
 */
public class Currency implements Agent {
    private final String intentName;
  	private String currencyFrom;
    private String currencyTo;
    private Double amount;

    public Currency(String intentName, Map<String, Value> parameters) {
        this.intentName = intentName;
        setParameters(parameters);
    }

	@Override 
	public void setParameters(Map<String, Value> parameters) {
        currencyFrom = parameters.get("currency-from").getStringValue();
        currencyTo = parameters.get("currency-to").getStringValue();
        amount = parameters.get("amount").getNumberValue();
	}
	
	@Override
	public String getOutput() {
        return "Redirecting for conversion";
	}

	@Override
	public String getDisplay() {
		return null;
	}

	@Override
	public String getRedirect() {
        String baseURL = "http://www.google.com/search?q=";
        String endURL = String.join("+", "Convert", String.valueOf(amount), currencyFrom, "to", currencyTo);
		return baseURL + endURL;
    }
}
@@ -468,17 +468,18 @@
 Name;%0A  
-%09
+  
 private 
@@ -710,17 +710,20 @@
 %0A    %7D%0A%0A
-%09
+    
 @Overrid
@@ -725,17 +725,20 @@
 erride %0A
-%09
+    
 public v
@@ -994,14 +994,19 @@
 ();%0A
-%09%7D%0A%09%0A%09
+    %7D%0A%0A    
 @Ove
@@ -1003,33 +1003,36 @@
 %0A%0A    @Override%0A
-%09
+    
 public String ge
@@ -1088,21 +1088,27 @@
 rsion%22;%0A
-%09%7D%0A%0A%09
+    %7D%0A%0A    
 @Overrid
@@ -1101,33 +1101,36 @@
 %0A%0A    @Override%0A
-%09
+    
 public String ge
@@ -1142,17 +1142,16 @@
 lay() %7B%0A
-%09
 %09return 
@@ -1160,13 +1160,19 @@
 ll;%0A
-%09%7D%0A%0A%09
+    %7D%0A%0A    
 @Ove
@@ -1177,17 +1177,20 @@
 verride%0A
-%09
+    
 public S
@@ -1380,17 +1380,16 @@
 ncyTo);%0A
-%09
 %09return 
@@ -1413,8 +1413,9 @@
 %0A    %7D%0A%7D
+%0A

Update Currency.java