-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
feat: agent jobs panel #7390
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
feat: agent jobs panel #7390
Conversation
Signed-off-by: Ettore Di Giacinto <mudler@localai.io>
Signed-off-by: Ettore Di Giacinto <mudler@localai.io>
Signed-off-by: Ettore Di Giacinto <mudler@localai.io>
Signed-off-by: Ettore Di Giacinto <mudler@localai.io>
✅ Deploy Preview for localai ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
| // Recreate request body if needed (it may have been consumed) | ||
| if req.Body != nil { | ||
| bodyBytes, _ := io.ReadAll(req.Body) | ||
| req.Body.Close() |
Check warning
Code scanning / gosec
Errors unhandled Warning
| var resp *http.Response | ||
| resp, err = client.Do(req) | ||
| if err == nil && resp.StatusCode >= 200 && resp.StatusCode < 300 { | ||
| resp.Body.Close() |
Check warning
Code scanning / gosec
Errors unhandled Warning
| } | ||
|
|
||
| if resp != nil { | ||
| resp.Body.Close() |
Check warning
Code scanning / gosec
Errors unhandled Warning
Signed-off-by: Ettore Di Giacinto <mudler@localai.io>
Signed-off-by: Ettore Di Giacinto <mudler@localai.io>
Description
This PR adds a new section in the WebUI and in the API to create and execute agent tasks in the background.
The main feature is about adding the possibility to create "tasks" that can be triggered via cron or via api.
Tasks are composed by agents prompts that can be templated, which are processed by an model configured via MCP. Jobs at the end can optionally post results via webhook endpoint which can be completely customized.
Every task can be programmatically also executed via API, and documentation is provided in the webui directly on how to use the tasks.
Notes for Reviewers
Signed commits