날씨: 이미 내린 비(이번 비 누적·어제 온 비)는 forecast가 아니라 current의 '이번 강수 누적'으로 답하게 힌트+도구 설명 보강

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
kimandClaude Sonnet 5.5 committed 2026-10-19 09:59:48 +09:00
1 parent 17b8931e44
commit e82198fa77
3 files changed
+26 -2

No files matched your search

+14
View File
@@ -33,3 +33,17 @@ test('history 끝에 현재 메시지가 이미 들어 있어도 직전 날씨
const h = weatherFollowUpHint('아니 서울', [...HW, { role: 'user', content: '아니 서울' }])!;
assert.match(h, /"서울"/);
});
test('이미 내린 비(이번 비 누적/어제 온 비) → current 실황을 쓰라는 힌트', () => {
for (const q of ['현풍 이번 비 누적 강수량은?', '어제 온 비', '지금까지 온 비는?', '비 얼마나 왔어']) {
const h = weatherFollowUpHint(q, H);
assert.ok(h && /type="current"/.test(h), q);
}
});
test('앞으로 올 비·무관한 말에는 과거 비 힌트가 붙지 않는다', () => {
for (const q of ['내일 비 올까', '이번 주말 비 예보', '고마워']) {
const h = weatherFollowUpHint(q, H);
assert.ok(!h || !/ALREADY fell/.test(h), q);
}
});