-
-
Notifications
You must be signed in to change notification settings - Fork 588
optimize LoadAgent #1198
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
optimize LoadAgent #1198
Conversation
PR Compliance Guide 🔍Below is a summary of compliance checks for this PR:
Compliance status legend🟢 - Fully Compliant🟡 - Partial Compliant 🔴 - Not Compliant ⚪ - Requires Further Human Verification 🏷️ - Compliance label |
||||||||||||||||||
PR Code Suggestions ✨Explore these optional code suggestions:
|
||||||||||||||||||
|
reviewed |
PR Type
Enhancement
Description
Add deep clone utility extension method for objects
Implement JSON-based serialization for deep cloning
Apply deep cloning to LoadAgent method for data isolation
Prevent unintended mutations of cached agent data
Diagram Walkthrough
File Walkthrough
ObjectExtensions.cs
Add generic deep clone extension methodsrc/Infrastructure/BotSharp.Abstraction/Utilities/ObjectExtensions.cs
AgentService.LoadAgent.cs
Apply deep cloning to LoadAgent resultsrc/Infrastructure/BotSharp.Core/Agents/Services/AgentService.LoadAgent.cs