- 
          
- 
                Notifications
    You must be signed in to change notification settings 
- Fork 582
add message wrapper to chat response #1154
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
| PR Reviewer Guide 🔍Here are some key observations to aid the review process: 
 | 
| PR Code Suggestions ✨Explore these optional code suggestions: 
 | ||||||||||||
PR Type
Enhancement
Description
Add message wrapper support to chat responses
Implement
ChatResponseWrapperclass with sending intervalMap additional message wrapper from conversation messages
Include message label field in response model
Diagram Walkthrough
File Walkthrough
ConversationController.cs
Map message wrapper and label fieldssrc/Infrastructure/BotSharp.OpenAPI/Controllers/ConversationController.cs
MessageLabelmapping from message to responseAdditionalMessageWrapperusing new wrapper classChatResponseModel.cs
Implement chat response wrapper classessrc/Infrastructure/BotSharp.OpenAPI/ViewModels/Conversations/Response/ChatResponseModel.cs
AdditionalMessageWrapperproperty with JSON serializationChatResponseWrapperclass with sending intervalFrommethod for wrapper conversion