This commit is contained in:
2026-05-13 10:18:54 +03:00
parent cd8d2683c0
commit c5b61ee3d8
38 changed files with 3929 additions and 3718 deletions
+2 -2
View File
@@ -42,7 +42,7 @@ export const weatherToolPrompt = [
"If the city is missing or unclear, ask the user to specify it.",
].join("\n");
export async function getWeather(args?: Record<string, unknown>): Promise<any | null> {
export async function getWeather(args?: Record<string, unknown>): Promise<Record<string, unknown> | null> {
console.log("getWeather()");
try {
const city = asNonEmptyString(args?.city);
@@ -137,7 +137,7 @@ export async function getWeather(args?: Record<string, unknown>): Promise<any |
windSpeed: wind.speed,
},
};
} catch (e: any) {
} catch (e: unknown) {
logError(e);
return null;
} finally {