-
-
Notifications
You must be signed in to change notification settings - Fork 604
InstructCompletion add file_urls state #1274
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 🔍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:
|
||||||||||||
PR Type
Enhancement
Description
Add
ToString()method toInstructFileModelfor better string representationIntroduce
file_urlsstate in conversation for file trackingOptimize
file_countstate assignment using null-coalescing operatorImprove code readability with consistent formatting
Diagram Walkthrough
File Walkthrough
InstructFileModel.cs
Add ToString method for file representationsrc/Infrastructure/BotSharp.Abstraction/Files/Models/InstructFileModel.cs
ToString()override method that returnsFileUrlif availableFileData(max 20 chars) ifFileUrlis emptyInstructModeController.cs
Add file_urls state and optimize file_countsrc/Infrastructure/BotSharp.OpenAPI/Controllers/Instruct/InstructModeController.cs
file_urlsstate usinginput.Files?.Select(p => p.ToString())file_countstate to use null-coalescing operator instead ofternary