-
Notifications
You must be signed in to change notification settings - Fork 9
feat: allow multiple records from a single audio/text #81
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
timeless-api/src/main/java/dev/matheuscruz/infra/ai/TextAiService.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR refactors the codebase to support processing multiple transaction records from a single audio/text message. The changes replace the previous single-operation model with a new structure that can handle multiple recognized operations.
Key Changes:
- Renamed
RecordInfotoRecognizedTransactionandContextMessagetoRecognizedOperationfor better clarity - Introduced
AllRecognizedOperationswrapper to enable handling multiple operations from a single message - Updated
TextAiService.handleMessage()to returnAllRecognizedOperationsinstead of a single string response
Reviewed changes
Copilot reviewed 9 out of 9 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| MessageResource.java | Updated to handle multiple operations; refactored processing logic to filter and process ADD_TRANSACTION operations |
| SQS.java | Added loop to process multiple recognized operations from AI response; updated method signatures with new data types |
| SimpleMessage.java | Changed parameter type from String to RecognizedTransaction |
| RecognizedTransaction.java | Renamed from RecordInfo (no functional change) |
| RecognizedOperation.java | New record to replace ContextMessage with typed transaction data |
| ContextMessage.java | Removed and replaced by RecognizedOperation |
| AllRecognizedOperations.java | New wrapper record to hold a list of recognized operations |
| TextAiService.java | Changed return type from String to AllRecognizedOperations |
| ImageAiService.java | Updated return type from RecordInfo to RecognizedTransaction |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
timeless-api/src/main/java/dev/matheuscruz/presentation/MessageResource.java
Outdated
Show resolved
Hide resolved
timeless-api/src/main/java/dev/matheuscruz/infra/queue/SQS.java
Outdated
Show resolved
Hide resolved
timeless-api/src/main/java/dev/matheuscruz/infra/ai/data/SimpleMessage.java
Outdated
Show resolved
Hide resolved
|
cc: @matheusandre1 do you mind to review it? |
Signed-off-by: Matheus Cruz <matheuscruz.dev@gmail.com>
Pull request overview
This PR refactors the codebase to support processing multiple transaction records from a single audio/text message. The changes replace the previous single-operation model with a new structure that can handle multiple recognized operations.
Key Changes:
RecordInfotoRecognizedTransactionandContextMessagetoRecognizedOperationfor better clarityAllRecognizedOperationswrapper to enable handling multiple operations from a single messageTextAiService.handleMessage()to returnAllRecognizedOperationsinstead of a single string responseReviewed changes
Copilot reviewed 9 out of 9 changed files in this pull request and generated 3 comments.
Show a summary per file
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.