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.
This pull request refactors and enhances the AI preprocessing and chat interaction logic by introducing a new
PreprocessingActionDatatype to encapsulate preprocessing actions, updating method signatures and usages throughout the AI modules, and improving how preprocessing information is displayed in Discord embeds. The changes make preprocessing results more structured and visible to users, and clean up the code to use strongly-typed data instead of plain strings.Refactoring to use
PreprocessingActionDataand improved data flow:TryPreprocessingMessage,ProgressPreprocessingActions, and allPreprocessing*methods) fromstringtoPreprocessingActionData[]orPreprocessingActionData, allowing richer and more structured preprocessing results. [1] [2] [3] [4] [5] [6] [7] [8]PreprocessingActionData[]instead of strings, including method parameters and returned values. [1] [2] [3] [4]Enhanced Discord embed display for preprocessing actions:
preprocessingEmbedat various points in the response flow. [1] [2] [3] [4] [5] [6]General improvements and code cleanup:
PreprocessingActionData, improving code clarity and reducing the risk of formatting errors. [1] [2] [3]These changes collectively improve the maintainability, extensibility, and user experience of the AI chat and preprocessing modules.