-
-
Notifications
You must be signed in to change notification settings - Fork 586
change code execution response #1219
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 Compliance Guide 🔍(Compliance updated until commit f1bb73d)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 Previous compliance checksCompliance check up to commit 9593021
|
||||||||||||||||||||||||||||||||||||||||||||||||
PR Code Suggestions ✨Explore these optional code suggestions:
|
||||||||||||
PR Type
Enhancement
Description
Changed
ExecutionResultfrom string toCodeInterpretResponse?objectUpdated code execution response handling across multiple services
Preserved execution result data by storing response object instead of string conversion
Refactored variable naming for clarity in instruction service
Diagram Walkthrough
File Walkthrough
CodeExecutionResponseModel.cs
Change ExecutionResult to CodeInterpretResponse objectsrc/Infrastructure/BotSharp.Abstraction/Coding/Models/CodeExecutionResponseModel.cs
BotSharp.Abstraction.Coding.Responsesnamespace
ExecutionResultproperty type fromstringtoCodeInterpretResponse?be available
RuleEngine.cs
Pass response object to ExecutionResultsrc/Infrastructure/BotSharp.Core.Rules/Engines/RuleEngine.cs
ExecutionResultassignment to passresponseobject directlyinstead of calling
ToString()InstructService.Execute.cs
Refactor response handling and variable namingsrc/Infrastructure/BotSharp.Core/Instructs/Services/InstructService.Execute.cs
responsetoinstructResultfor clarity throughout themethod
ExecutionResultassignment to passcodeResponseobjectdirectly
instructResult.TextfromExecutionResult?.ToString()after code executionInstructionLogHook.cs
Convert ExecutionResult object to string for loggingsrc/Infrastructure/BotSharp.Logger/Hooks/InstructionLogHook.cs
CompletionTextassignment to convertExecutionResultobject tostring on-demand