tidying up
This commit is contained in:
parent
08808a45e0
commit
fb303d748f
1 changed files with 8 additions and 1 deletions
|
|
@ -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: {
|
||||
|
|
|
|||
Loading…
Reference in a new issue