Skip to content

Conversation

@DongilMin
Copy link
Member

@DongilMin DongilMin commented Aug 18, 2025

ai summary bedrock return type: str -> list

Summary by CodeRabbit

  • 신기능

    • 감정 분석 결과를 단일 문자열에서 감정/퍼센트 항목 배열로 제공하여 여러 감정과 비율을 한눈에 확인 가능.
    • 퍼센트 합계 100% 기준으로 정규화·정렬된 결과 제공.
    • 분석 실패·미검출 시 기본값 및 ‘분석 불가(100%)’ 형태로 명확한 응답 제공.
  • 문서

    • API 문서의 응답 스키마와 예시를 감정/퍼센트 배열 형식으로 업데이트.

@DongilMin DongilMin self-assigned this Aug 18, 2025
@coderabbitai
Copy link
Contributor

coderabbitai bot commented Aug 18, 2025

Caution

Review failed

The pull request is closed.

Walkthrough

  • DTO 변경: emotionAnalysis 타입을 string에서 EmotionItem[]로 변경하고 EmotionItem 인터페이스를 추가.
  • 서비스 변경: parseEmotionText 도입으로 감정 텍스트를 EmotionItem[]로 파싱. 2줄/1줄 응답 모두 새 파서 사용. 파싱 불가/빈 결과 시 기본 4개 항목(공감40, 기쁨30, 놀람20, 기타10) 반환. 오류 시 [{emotion:'분석 불가', percentage:100}] 반환.
  • 라우트(Swagger) 변경: emotionAnalysis 스키마와 예시를 배열 형태로 갱신.
  • 기타: topicSummary 길이 제한 유지, 로깅/주석 일부 정리.

Sequence Diagram(s)

sequenceDiagram
  participant Client
  participant Route as aiSummaryRoutes
  participant Service as AiSummaryService
  participant LLM as Claude API
  Client->>Route: POST /api/ai/summary
  Route->>Service: generateChatSummary(request)
  Service->>LLM: 요청 전송
  LLM-->>Service: 원문 응답(요약/감정 텍스트)
  Service->>Service: parseEmotionText(텍스트→EmotionItem[])
  alt 파싱 실패 또는 빈 결과
    Service->>Service: 기본 EmotionItem[] 적용
  end
  Service-->>Route: { topicSummary, emotionAnalysis: EmotionItem[] }
  Route-->>Client: 응답(JSON + Swagger 스키마 반영)
Loading
sequenceDiagram
  participant Service as AiSummaryService
  participant LLM as Claude API
  Service->>LLM: 요청
  LLM-->>Service: 오류/실패
  Service-->>Service: emotionAnalysis=[{분석 불가,100}]
  Service-->>Caller: DTO 반환
Loading

Estimated code review effort

🎯 4 (Complex) | ⏱️ ~60 minutes

Tip

🔌 Remote MCP (Model Context Protocol) integration is now available!

Pro plan users can now connect to remote MCP servers from the Integrations page. Connect with popular remote MCPs such as Notion and Linear to add more context to your reviews and chats.


📜 Recent review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

💡 Knowledge Base configuration:

  • MCP integration is disabled by default for public repositories
  • Jira integration is disabled by default for public repositories
  • Linear integration is disabled by default for public repositories

You can enable these sources in your CodeRabbit configuration.

📥 Commits

Reviewing files that changed from the base of the PR and between 0ce2882 and 5bbc89f.

📒 Files selected for processing (3)
  • src/dtos/aiSummaryDto.ts (3 hunks)
  • src/routes/aiSummaryRoutes.ts (1 hunks)
  • src/services/aiSummaryService.ts (2 hunks)
✨ Finishing Touches
  • 📝 Generate Docstrings
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

CodeRabbit Commands (Invoked using PR/Issue comments)

Type @coderabbitai help to get the list of available commands.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Status, Documentation and Community

  • Visit our Status Page to check the current availability of CodeRabbit.
  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@DongilMin DongilMin merged commit a9f7388 into ON-AIR-mate:main Aug 18, 2025
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant