Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ public static BaseAgent initAgent() {
}

public static Map<String, String> 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)
Expand Down Expand Up @@ -76,7 +77,8 @@ public static Map<String, String> getCurrentTime(
}

public static Map<String, String> 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(
Expand Down Expand Up @@ -119,4 +121,4 @@ public static void main(String[] args) throws Exception {
}
}
}
// --8<-- [end:full_code]
// --8<-- [end:full_code]