-
-
Notifications
You must be signed in to change notification settings - Fork 583
add file_count for InstructCompletion #1203
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:
No security concerns identified
No security vulnerabilities detected by AI analysis. Human verification advised for critical code.🎫 No ticket provided
- [ ] Create ticket/issue <!-- /create_ticket --create_ticket=true -->
</details></td></tr>
Codebase context is not defined
Follow the guide to enable codebase context checks.
No custom compliance provided
Follow the guide to enable custom compliance check.
- Update
Compliance status legend
🟢 - Fully Compliant🟡 - Partial Compliant
🔴 - Not Compliant
⚪ - Requires Further Human Verification
🏷️ - Compliance label
PR Code Suggestions ✨Explore these optional code suggestions:
|
||||||||
Uh oh!
There was an error while loading. Please reload this page.
PR Type
Enhancement
Description
Add file_count state tracking for InstructCompletion requests
Set file_count state when Files collection is not empty
Diagram Walkthrough
flowchart LR input["InstructMessageModel input"] -- "check Files collection" --> check{"Files not empty?"} check -- "yes" --> setState["SetState file_count"] check -- "no" --> skip["Skip state setting"] setState --> state["IConversationStateService"] skip --> stateFile Walkthrough
InstructModeController.cs
Add file_count state tracking logicsrc/Infrastructure/BotSharp.OpenAPI/Controllers/InstructModeController.cs