-
-
Notifications
You must be signed in to change notification settings - Fork 603
fix json format use llm #1275
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
fix json format use llm #1275
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:
|
|||||||||||||||||
src/Infrastructure/BotSharp.Abstraction/Instructs/Enums/ResponseFormatType.cs
Show resolved
Hide resolved
Co-authored-by: Aden <[email protected]> Co-authored-by: Jicheng Lu <[email protected]> Co-authored-by: iceljc <[email protected]> Co-authored-by: Jack <[email protected]> Co-authored-by: jackjiang-sms <[email protected]> optimize ResponseFormat
|
The current changes cannot be compiled. |
Fixed |
|
reviewed |
PR Type
Enhancement
Description
Add JSON repair service using LLM for malformed JSON
Implement IJsonRepairService interface with repair methods
Create JsonRepairPlugin for dependency injection registration
Add Liquid template for JSON repair prompt generation
Diagram Walkthrough
File Walkthrough
IJsonRepairService.cs
JSON repair service interface definitionsrc/Infrastructure/BotSharp.Abstraction/Utilities/IJsonRepairService.cs
JsonRepairPlugin.cs
Plugin registration for JSON repair servicesrc/Infrastructure/BotSharp.Core/JsonRepair/JsonRepairPlugin.cs
JsonRepairService.cs
JSON repair service implementation with LLMsrc/Infrastructure/BotSharp.Core/JsonRepair/JsonRepairService.cs
json_repair.liquid
Liquid template for JSON repair promptsrc/Infrastructure/BotSharp.Core/data/agents/01fcc3e5-9af7-49e6-ad7a-a760bd12dc4a/templates/json_repair.liquid
BotSharp.Core.csproj
Project file updates for template resourcessrc/Infrastructure/BotSharp.Core/BotSharp.Core.csproj