tidying up

This commit is contained in:
sushichan044 2025-06-28 14:56:02 +09:00
commit fb303d748f
No known key found for this signature in database

View file

@ -43,7 +43,14 @@ server.registerTool(
void country;
// Simulate weather API call
const temp_c = Math.round((Math.random() * 35 - 5) * 10) / 10;
const conditions = ["sunny", "cloudy", "rainy", "stormy", "snowy"][Math.floor(Math.random() * 5)] as unknown as "sunny" | "cloudy" | "rainy" | "stormy" | "snowy";
const conditionCandidates = [
"sunny",
"cloudy",
"rainy",
"stormy",
"snowy",
] as const;
const conditions = conditionCandidates[Math.floor(Math.random() * conditionCandidates.length)];
const structuredContent = {
temperature: {