-
-
Notifications
You must be signed in to change notification settings - Fork 586
add run crontab endpoint #1220
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
add run crontab endpoint #1220
Conversation
PR Compliance Guide 🔍(Compliance updated until commit d445e0b)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 d445e0b
|
||||||||||||||||||||||||||||||||||||||||||||||||||
PR Code Suggestions ✨Explore these optional code suggestions:
|
|||||||||||||||
PR Type
Enhancement, Bug fix
Description
Add new crontab endpoint to manually trigger scheduled tasks
Refactor instruction execution logic into separate RunLlm method
Fix typos and improve code organization in crontab service
Clean up unused imports and reorganize namespace structure
Diagram Walkthrough
flowchart LR A["CrontabController"] -- "POST /crontab/{name}" --> B["RunCrontab"] B -- "calls" --> C["ICrontabService"] C -- "executes" --> D["ScheduledTimeArrived"] E["InstructService.Execute"] -- "delegates" --> F["RunLlm"] F -- "handles" --> G["LLM Completion"]File Walkthrough
CrontabService.cs
Fix typos in crontab service variable namessrc/Infrastructure/BotSharp.Core.Crontab/Services/CrontabService.cs
fixedCrantabItemsrenamed tofixedCrontabItemscronsourcesrenamed tocronSourcesfor consistencyInstructService.Execute.cs
Refactor instruction execution into separate RunLlm methodsrc/Infrastructure/BotSharp.Core/Instructs/Services/InstructService.Execute.cs
RunLlmprivate methodExecutemethod by delegating LLM work toRunLlmIConversationStateServicevariable from Execute methodCrontabController.cs
Add new crontab controller with run endpointsrc/Infrastructure/BotSharp.OpenAPI/Controllers/Crontab/CrontabController.cs
/crontab/{name}SpeechToTextRequest.cs
Remove empty SpeechToTextRequest classsrc/Plugins/BotSharp.Plugin.OpenAI/Models/SpeechToTextRequest.cs
RealTimeCompletionProvider.cs
Remove unused imports from RealTimeCompletionProvidersrc/Plugins/BotSharp.Plugin.OpenAI/Providers/Realtime/RealTimeCompletionProvider.cs
BotSharp.Abstraction.Realtime.SessionsandBotSharp.Plugin.OpenAI.Models.RealtimeTextCompletionRequest.cs
Update namespace for TextCompletionRequestsrc/Plugins/BotSharp.Plugin.OpenAI/Models/Text/TextCompletionRequest.cs
BotSharp.Plugin.OpenAI.ModelstoBotSharp.Plugin.OpenAI.Models.TextTextCompletionResponse.cs
Update namespace for TextCompletionResponsesrc/Plugins/BotSharp.Plugin.OpenAI/Models/Text/TextCompletionResponse.cs
BotSharp.Plugin.OpenAI.ModelstoBotSharp.Plugin.OpenAI.Models.TextUsing.cs
Update global using statements for new namespacessrc/Plugins/BotSharp.Plugin.OpenAI/Using.cs
BotSharp.Plugin.OpenAI.ModelstoBotSharp.Plugin.OpenAI.Models.TextBotSharp.Plugin.OpenAI.Models.Realtime