Skip to content

[Task] Claude 토큰 사용량 세션별 추적 #15

Description

@HarryBae1011

작업 개요

  • Claude 호출 비용 가시성을 확보하기 위해 세션별 토큰 사용량을 추적한다.
  • 현재 코드베이스에 토큰 사용량을 기록하는 로직이 존재하지 않음.

작업 범위

  • Spring AI ChatResponse의 usage (입력/출력 토큰) 정보를 세션 단위로 누적 저장할 엔티티/컬럼 설계
  • Claude 호출 지점(LlmFeedbackService)에서 매 호출마다 토큰 사용량 기록
  • 세션별 누적 토큰 수를 조회할 수 있는 경로 마련 (엔드포인트 또는 로그/메트릭)

완료 조건

  • 면접 세션 하나를 완료했을 때 해당 세션에서 사용된 총 입력/출력 토큰 수를 확인할 수 있음

관련 이슈 / PR

없음

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions