-
-
Notifications
You must be signed in to change notification settings - Fork 603
refine repository and coding util #1273
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
…atures/refine-membase
…atures/refine-membase
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 ✨Latest suggestions up to dfdec70
Previous suggestions✅ Suggestions up to commit 6bf71f2
|
|||||||||||||||||||||||||||||||||||||||
…atures/refine-membase
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, Bug fix
Description
Centralize code execution config logic into reusable
CodingUtilclassChange multiple
ValueTaskreturn types toTaskfor consistencyAdd SSE (Server-Sent Events) support for instruction completion endpoint
Remove conversation state migration functionality and related API endpoint
Enhance Membase plugin with edge operations and embedding support
Refactor instruction controller to extract state-setting logic
Diagram Walkthrough
flowchart LR A["Code Execution Config"] -->|Extract to Utility| B["CodingUtil.GetCodeExecutionConfig"] B -->|Used by| C["RuleEngine"] B -->|Used by| D["InstructService"] B -->|Used by| E["PyProgrammerFn"] F["ValueTask Methods"] -->|Convert to Task| G["Repository Interface"] G -->|Implemented by| H["FileRepository & MongoRepository"] I["InstructModeController"] -->|Add SSE Endpoint| J["/instruct/{agentId}/sse"] K["Membase Plugin"] -->|Add Edge Operations| L["Edge CRUD APIs"] K -->|Add Embedding Support| M["Node Models"] N["ConversationService"] -->|Remove| O["MigrateLatestStates Method"]File Walkthrough
21 files
New utility class for code execution configurationIncrease file data substring limit to 50Use centralized CodingUtil for configUse centralized CodingUtil for configRefactor conversation retrieval logicAdd SSE endpoint and extract state logicRefactor API client registration with auth handlerNew model for edge creationNew model for edge updatesAdd embedding support to node creationAdd embedding support to node updatesNew edge response modelNew edge delete response modelNew graph information response modelAdd embedding support and clean formattingNew node delete response modelAdd edge operations and graph info endpointsNew authentication handler for Membase APIRename conversion methods for clarityUpdate method calls to renamed conversion methodsUse centralized CodingUtil for config18 files
Remove migration method from interfaceChange ValueTask to Task for consistencyRemove entire migration service fileChange ValueTask to Task return typeChange ValueTask to Task return typeChange ValueTask to Task return typeChange ValueTask to Task return typeChange ValueTask to Task return typeChange ValueTask to Task return typeRemove migration endpoint from controllerMake Files property nullableAccept nullable user parameterChange ValueTask to Task return typeChange ValueTask to Task return typeChange ValueTask to Task return typeChange ValueTask to Task return typeChange ValueTask to Task return typeChange ValueTask to Task return type8 files
Remove trailing newline formattingRemove blank lines between propertiesRemove unused import statementRemove blank lines between propertiesRemove blank line between propertiesRemove unused import statementsAdd blank line for formattingFix BOM encoding in project file2 files
Add missing using statementsAdd global using for Membase models