diff --git a/examples/java/cloud-run/src/main/java/agents/multitool/MultiToolAgent.java b/examples/java/cloud-run/src/main/java/agents/multitool/MultiToolAgent.java index 73292ccdc..6cefd75c2 100644 --- a/examples/java/cloud-run/src/main/java/agents/multitool/MultiToolAgent.java +++ b/examples/java/cloud-run/src/main/java/agents/multitool/MultiToolAgent.java @@ -43,7 +43,8 @@ public static BaseAgent initAgent() { } public static Map getCurrentTime( - @Schema(description = "The name of the city for which to retrieve the current time") + @Schema(name = "city", + description = "The name of the city for which to retrieve the current time") String city) { String normalizedCity = Normalizer.normalize(city, Normalizer.Form.NFD) @@ -76,7 +77,8 @@ public static Map getCurrentTime( } public static Map getWeather( - @Schema(description = "The name of the city for which to retrieve the weather report") + @Schema(name = "city", + description = "The name of the city for which to retrieve the weather report") String city) { if (city.toLowerCase().equals("new york")) { return Map.of( @@ -119,4 +121,4 @@ public static void main(String[] args) throws Exception { } } } -// --8<-- [end:full_code] \ No newline at end of file +// --8<-- [end:full_code]