Skip to content

Conversation

@mcruzdev
Copy link
Owner

@mcruzdev mcruzdev commented Dec 1, 2025

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 RecordInfo to RecognizedTransaction and ContextMessage to RecognizedOperation for better clarity
  • Introduced AllRecognizedOperations wrapper to enable handling multiple operations from a single message
  • Updated TextAiService.handleMessage() to return AllRecognizedOperations instead 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.

Copy link
Contributor

Copilot AI left a 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 RecordInfo to RecognizedTransaction and ContextMessage to RecognizedOperation for better clarity
  • Introduced AllRecognizedOperations wrapper to enable handling multiple operations from a single message
  • Updated TextAiService.handleMessage() to return AllRecognizedOperations instead 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.

@mcruzdev
Copy link
Owner Author

mcruzdev commented Dec 1, 2025

cc: @matheusandre1 do you mind to review it?

Signed-off-by: Matheus Cruz <matheuscruz.dev@gmail.com>
@mcruzdev mcruzdev linked an issue Dec 2, 2025 that may be closed by this pull request
@mcruzdev mcruzdev merged commit dd8d0ac into main Dec 2, 2025
3 checks passed
@mcruzdev mcruzdev deleted the issue-5 branch December 2, 2025 15:07
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.

Allow multiple records from a single audio input

1 participant