-
-
Notifications
You must be signed in to change notification settings - Fork 556
refine side car states #1089
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
refine side car states #1089
Conversation
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
PR Type
Bug fix, Enhancement
Description
Fix sidecar state restoration bug in
SetCurrentState
methodAdd state inheritance options for sidecar conversations
Introduce
SideCarOptions
model for configuration controlEnhance
SendMessage
method with optional parametersChanges diagram
Changes walkthrough 📝
IConversationSideCar.cs
Update interface with SideCarOptions parameter
src/Infrastructure/BotSharp.Abstraction/SideCar/IConversationSideCar.cs
SideCarOptions
parameter toSendMessage
methodSideCar.Models
namespaceSideCarOptions.cs
Add SideCarOptions configuration model
src/Infrastructure/BotSharp.Abstraction/SideCar/Models/SideCarOptions.cs
SideCarOptions
classIsInheritStates
andInheritStateKeys
propertiesEmpty()
factory methodBotSharpConversationSideCar.cs
Implement state inheritance and restoration logic
src/Infrastructure/BotSharp.Core.SideCar/Services/BotSharpConversationSideCar.cs
_sideCarOptions
field for configuration storageRestoreStates
method with inheritance logicSendMessage
to accept and store optionsUsing.cs
Add SideCar models namespace import
src/Infrastructure/BotSharp.Core.SideCar/Using.cs
BotSharp.Abstraction.SideCar.Models
ConversationStateService.cs
Fix SetCurrentState parameter bug
src/Infrastructure/BotSharp.Core/Conversations/Services/ConversationStateService.cs
SetCurrentState
method parameter usage_curStates.Values
tostate.Values