fix(weather): 국내 위치는 무조건 weather_kma 우선 (도구 설명·프롬프트 정정)

openmeteo 설명이 "한국도 3일을 넘으면 이 도구"라고 안내해 "이번 주 구미 날씨"가 openmeteo로
갔다. kma가 이제 4~10일 중기예보까지 주므로 국내는 항상 kma 먼저로 바꾼다.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
kimandClaude Sonnet 5.5 committed 2026-10-14 10:59:30 +09:00
1 parent ccd7d00de2
commit aa9badc9d1
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -919,7 +919,7 @@ export function createBuildTools(isOrchestrationSkillEnabled: () => boolean) {
type: 'function',
function: {
name: 'weather_openmeteo',
description: 'Preferred forecast tool OUTSIDE Korea, and inside Korea whenever the range exceeds weather_kma\'s 3 days or the question needs UV / hourly detail. Open-Meteo (free, no key): precipitation probability, hourly breakdown, UV index, ECMWF/GFS models, up to 16 days. For a Korean location within 3 days call weather_kma first — it is observation-backed and its numbers differ materially (verified 2026-07-29: 20% vs 0% rain, highs 1.5-2.5°C apart for the same day). Never use web_search for weather.',
description: 'Forecast tool for locations OUTSIDE Korea. For ANY Korean location ALWAYS call weather_kma FIRST — no exceptions (KMA is the authority domestically); use this tool for a Korean location only in addition to weather_kma, and only for UV index or long hourly detail. This includes "이번 주"/weekend/week-ahead questions: weather_kma now returns days 1-3 from KMA plus days 4-10 from the official KMA mid-range forecast (2026-10-14). Open-Meteo (free, no key): precipitation probability, hourly breakdown, UV index, ECMWF/GFS models, up to 16 days. For a Korean location call weather_kma first (any range up to 10 days) — it is observation-backed and its numbers differ materially (verified 2026-07-29: 20% vs 0% rain, highs 1.5-2.5°C apart for the same day). Never use web_search for weather.',
parameters: {
type: 'object', required: ['location'],
properties: {
+1 -1
View File
@@ -125,7 +125,7 @@ export function buildChatSystemPrompt(input: SystemPromptInput): string {
const meteo = has('weather_openmeteo');
if (!kma && !meteo) return '';
if (kma && meteo) {
return 'Pick the source by location: for anywhere in Korea call weather_kma first (observation-backed, includes precipitation chance), and add weather_openmeteo only when you need more than 3 days out or UV/hourly detail; outside Korea use weather_openmeteo. If the tool you called did not return precipitation chance, do NOT invent one and do NOT quietly skip it — call one that provides it. ';
return 'Pick the source by location: for anywhere in Korea ALWAYS call weather_kma first, no exceptions (the Korea Meteorological Administration is the authority domestically; observation-backed, includes precipitation chance), and add weather_openmeteo only when you need UV/long hourly detail (weather_kma already returns days 4-10 from the official KMA mid-range forecast, so "이번 주" needs no second tool); outside Korea use weather_openmeteo. If the tool you called did not return precipitation chance, do NOT invent one and do NOT quietly skip it — call one that provides it. ';
}
if (kma) return 'Use weather_kma (Korea only, observation-backed, includes precipitation chance). If it cannot cover the location or range, say so rather than estimating. ';
return 'Use weather_openmeteo — it carries precipitation probability and hourly detail. If it did not return a precipitation chance, do NOT invent one. ';