Repository navigation
[Feat/#79] 학생 본인의 대여 현황·반납 기한과 사물함 위치 조회 도구 - #80
Merged
Merged
Conversation
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars.
|
seungbye
approved these changes
Nov 17, 2026
seungbye
left a comment
Contributor
There was a problem hiding this comment.
승인할게요 👍
- 대여 이력과 반납 목록을 대여 ID로 합친 이유가 주석에 잘 적혀 있어요
기한지남을 코드에서 계산해서 넘긴 거 좋아요. 모델이 날짜 비교를 틀리는 일이 줄어요- 결과를 로그에 남기지 않고 "불렸다는 사실"만 남긴 것도 좋아요
- 가짜 대여 날짜를 지금 시각 기준으로 만든 덕분에 평가 돌릴 때 매번 연체로 나오지 않겠네요
참고
- #75 리뷰에서 짚어 준
chatbot-scope.md문장(내 대여·사물함 조회 안 함)은 제가 #75에서 고칠게요. 안 고치면 이 도구를 두고도 거절할 수 있어서요 - 도구가 3개가 되면서 동기 호출이 한 답변에 최대 2~3번(대여 이력 + 반납 목록 + 사물함 구역) 일어나요. #70에 적은 이벤트 루프 얘기는 이쪽에서 더 체감될 수 있어요
머지 시점
…cker-tools # Conflicts: # tools.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
#️⃣연관된 이슈
선행: #70 (#69). 이 PR은 #70 브랜치 위에 쌓았어요. 그래서 base를
feat/#69-real-item-stock으로 두었어요. #70이 머지되면 base를main으로 바꿔요.📝작업 내용
학생이 "내가 빌린 거 언제까지 반납해?", "내 사물함 어디야?"라고 물으면, 질문한 학생 본인의 정보를 백엔드에서 조회해 답해요. #70에서 만든 학생 JWT 전달(
X-User-Token)을 그대로 쓰고, 조회(GET)만 해요.get_my_rentals— 내 대여 현황과 반납 기한GET /v1/app/billilge/histories와/histories/return-required를 대여 ID로 합쳐요.RENTAL→ "대여 중",RETURN_PENDING→ "반납 신청함(확인 대기)".기한지남으로 넘겨요. 모델이 날짜 계산을 틀리지 않게 하려는 거예요.get_my_locker— 내 사물함 위치와 사용 기간GET /v1/app/lockers/applications로 배정 내역을 받아요.GET /v1/app/lockers/sections?lockerPeriodId=로 붙여요.data: null을 주는데, 이때는 "배정된 사물함이 없어요"로 답해요.공통
_backend_get으로 모았어요. 재고 조회도 이 함수를 써요.프롬프트 (
system_v2.md6번 규칙)확인한 것
data: null은 의도대로 답했어요.get_my_rentals로 기한 답변get_my_locker로 구역·번호 답변get_item_stock으로 답변💬리뷰 요구사항(선택)
>는 #68에서 따로 다뤄요.