반복호출 차단 안내문: 3일 넘는 국내 예보는 weather_kma가 중기예보(4~10일)까지 주므로 openmeteo로 보내지 않음
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
51818cf846
commit
aebe188ba8
1 file changed
+1
-1
@@ -2711,7 +2711,7 @@ async function handleChat(
|
||||
// which it can ever answer no matter how many times it's retried — costs nothing on the
|
||||
// vast majority of loop-blocks that aren't this, and directly fixes the ones that are.
|
||||
const toolPivotHint = toolName === 'weather_kma'
|
||||
? ' weather_kma cannot answer air-quality (미세먼지/PM2.5/PM10/황사) questions — use weather_airkorea instead. For forecasts beyond 3 days, use weather_openmeteo instead.'
|
||||
? ' weather_kma cannot answer air-quality (미세먼지/PM2.5/PM10/황사) questions — use weather_airkorea instead. For Korean forecasts beyond 3 days, weather_kma itself already returns days 4-10 (KMA mid-range forecast) in the same result — read that section instead of re-calling; use weather_openmeteo only for locations outside Korea or for UV/long hourly detail.'
|
||||
: '';
|
||||
const blockMsg = `${loopPivotNudge}${toolPivotHint} Repeated call blocked: ${toolName} with identical arguments has run ${loopCheck.repeats} times (critical threshold ${loopCriticalThreshold}).`;
|
||||
console.warn(`[v2] LOOP BLOCK: ${toolName}(${JSON.stringify(toolArgs).slice(0, 80)}) x${loopCheck.repeats}`);
|
||||
|
||||
Reference in new issue
Block a user