-
-
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
ChatResponseWrapper
class 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 fields
src/Infrastructure/BotSharp.OpenAPI/Controllers/ConversationController.cs
MessageLabel
mapping from message to responseAdditionalMessageWrapper
using new wrapper classChatResponseModel.cs
Implement chat response wrapper classes
src/Infrastructure/BotSharp.OpenAPI/ViewModels/Conversations/Response/ChatResponseModel.cs
AdditionalMessageWrapper
property with JSON serializationChatResponseWrapper
class with sending intervalFrom
method for wrapper conversion