Skip to content

Conversation

@mudler
Copy link
Owner

@mudler mudler commented Nov 28, 2025

Description

Screenshot 2025-11-28 at 17-36-28 LocalAI - Create Task

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

  • Yes, I signed my commits.

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>
@netlify
Copy link

netlify bot commented Nov 28, 2025

Deploy Preview for localai ready!

Name Link
🔨 Latest commit 4d2bd60
🔍 Latest deploy log https://app.netlify.com/projects/localai/deploys/692a0ca7369bdc00081ee2da
😎 Deploy Preview https://deploy-preview-7390--localai.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

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

Errors unhandled
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

Errors unhandled
}

if resp != nil {
resp.Body.Close()

Check warning

Code scanning / gosec

Errors unhandled Warning

Errors unhandled
@mudler mudler added enhancement New feature or request and removed dependencies labels Nov 28, 2025
Signed-off-by: Ettore Di Giacinto <mudler@localai.io>
Signed-off-by: Ettore Di Giacinto <mudler@localai.io>
@mudler mudler marked this pull request as ready for review November 28, 2025 21:32
@mudler mudler merged commit 53e5b2d into master Nov 28, 2025
30 checks passed
@mudler mudler deleted the feat/agent-panel branch November 28, 2025 22:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants