Commit Graph

517 Commits

Author SHA1 Message Date
Ettore Di Giacinto 5fdd464fad Improve plan description 2025-03-28 22:16:12 +01:00
Ettore Di Giacinto 68cfdecaee Do not delete message in case of error 2025-03-28 22:11:43 +01:00
Ettore Di Giacinto 906b4ebd76 feat: add retries to pickAction
Signed-off-by: Ettore Di Giacinto <mudler@localai.io>
2025-03-28 22:04:04 +01:00
Ettore Di Giacinto 05cb8ba2eb ci: add concurrency group for tests 2025-03-28 21:33:14 +01:00
Ettore Di Giacinto 0644daa477 feat: retrials (#110)
* feat(jobs): rework next actions

Also attempt to retry when failing at generating parameters

Signed-off-by: mudler <mudler@localai.io>

* feat(retries): add retries for common operations

Signed-off-by: mudler <mudler@localai.io>

---------

Signed-off-by: mudler <mudler@localai.io>
2025-03-28 21:27:34 +01:00
mudler 62940a1a56 fix: add a tab when listing agents
Signed-off-by: mudler <mudler@localai.io>
2025-03-28 18:40:40 +01:00
mudler c6ce1c324f feat(slack): respond to channel only on channel mode
Signed-off-by: mudler <mudler@localai.io>
2025-03-28 17:01:24 +01:00
mudler 383fc1d0f4 fix(multi-agent): small fixes
Signed-off-by: mudler <mudler@localai.io>
2025-03-28 16:55:08 +01:00
mudler 8ac6f68568 fix(multi-agent): do not allow to call ourselves
Signed-off-by: mudler <mudler@localai.io>
2025-03-28 16:51:07 +01:00
mudler 05af5d9695 Use internal API for services/actions when using the pool
Signed-off-by: mudler <mudler@localai.io>
2025-03-28 16:12:42 +01:00
mudler 2c273392cd add debug messages 2025-03-28 15:31:26 +01:00
Ettore Di Giacinto 08f5417e96 go fmt 2025-03-27 23:06:33 +01:00
Ettore Di Giacinto f67ebe8c7a Update agent.go 2025-03-27 00:15:52 +01:00
Ettore Di Giacinto 6ace4ab60d Expire jobs if context is canceled 2025-03-27 00:13:26 +01:00
Richard Palethorpe 319caf8e91 chore(ui): Move some field definitions server side 2025-03-26 22:56:29 +00:00
Richard Palethorpe 7fb99ecf21 chore(ui): Reuse FormFieldDefinition on other parts of AgentForm 2025-03-26 22:56:29 +00:00
Richard Palethorpe d520d88301 feat(ui): Add required indicator to form field 2025-03-26 22:56:29 +00:00
Richard Palethorpe 4dcc77372d chore(ui): Refactor action and connector form fields into single component 2025-03-26 22:56:29 +00:00
Ettore Di Giacinto 0f2731f9e8 fix(actions): respect running context
Signed-off-by: Ettore Di Giacinto <mudler@localai.io>
2025-03-26 22:58:52 +01:00
Ettore Di Giacinto 6e888f6008 Move action context to the job
Signed-off-by: Ettore Di Giacinto <mudler@localai.io>
2025-03-26 22:37:25 +01:00
mudler 2713349c75 debug 2025-03-26 18:26:31 +01:00
mudler b6cd62a8a3 Merge branch 'fixups/mixed' 2025-03-26 17:11:38 +01:00
mudler dd6739cbbf fix: consistently track user message in connector
Signed-off-by: mudler <mudler@localai.io>
2025-03-26 17:11:09 +01:00
Ettore Di Giacinto 5cd0eaae3f fix: mixed fixups and enhancements (#107)
* chore(Makefile): build react dist if missing

Signed-off-by: mudler <mudler@localai.io>

* fix(planning): don't loose results

Signed-off-by: mudler <mudler@localai.io>

* fix(slack): track user messages when writing on channel

Signed-off-by: mudler <mudler@localai.io>

---------

Signed-off-by: mudler <mudler@localai.io>
2025-03-26 17:05:59 +01:00
mudler 9d6b81d9c2 fix(slack): track user messages when writing on channel
Signed-off-by: mudler <mudler@localai.io>
2025-03-26 16:59:23 +01:00
mudler d5df14a714 fix(planning): don't loose results
Signed-off-by: mudler <mudler@localai.io>
2025-03-26 16:58:11 +01:00
mudler 8e9b87bcb1 chore(Makefile): build react dist if missing
Signed-off-by: mudler <mudler@localai.io>
2025-03-26 16:57:46 +01:00
Richard Palethorpe 3e36b09376 fix(ui): Format status result as string 2025-03-26 06:34:32 +00:00
Richard Palethorpe 074aefd0df feat(ui): Add status page to react frontend 2025-03-26 06:34:32 +00:00
Richard Palethorpe 3e1081fc6e fix(ui): Fix MCP form 2025-03-26 06:34:32 +00:00
Richard Palethorpe 73af9538eb feat(ui): Add agent avatar placeholders to agent list 2025-03-26 06:34:32 +00:00
Richard Palethorpe 959dd8c7f3 Update README with hot reloading instructions 2025-03-26 06:34:32 +00:00
Richard Palethorpe 71e66c651c feat(ui): Add React based UI for the vibes at /app
This adds a completely separate frontend based on React because I
found that code gen works better with React once the application gets
bigger. In particular it was getting very hard to move past add
connectors and actions.

The idea is to replace the standard UI with this once it has been
tested. But for now it is available at /app in addition to the
original at /

Signed-off-by: Richard Palethorpe <io@richiejp.com>
2025-03-26 06:34:32 +00:00
Ettore Di Giacinto 438a65caf6 Fixup printing large messages
Signed-off-by: Ettore Di Giacinto <mudler@localai.io>
2025-03-25 22:59:08 +01:00
Ettore Di Giacinto fb20bbe5bf Allow slack bots to initiate conversations
Signed-off-by: Ettore Di Giacinto <mudler@localai.io>
2025-03-25 22:58:59 +01:00
Ettore Di Giacinto fa12dba7c2 Better paragraph splitting
Signed-off-by: Ettore Di Giacinto <mudler@localai.io>
2025-03-25 22:28:08 +01:00
mudler 54c8bf5f1a Split and preserve message 2025-03-25 20:10:40 +01:00
mudler 7bc44167cf Handle photos results in telegram
Signed-off-by: mudler <mudler@localai.io>
2025-03-25 19:47:34 +01:00
mudler 88933784de Handle long responses
Signed-off-by: mudler <mudler@localai.io>
2025-03-25 19:41:13 +01:00
mudler d7b503e30c Fixups 2025-03-25 19:18:05 +01:00
mudler e1e708ee75 Isolate functions 2025-03-25 19:06:55 +01:00
mudler 9d81eb7509 Do not lock on responses
Signed-off-by: mudler <mudler@localai.io>
2025-03-25 19:03:01 +01:00
mudler ddc7d0e100 handle lock inside goroutine
Signed-off-by: mudler <mudler@localai.io>
2025-03-25 18:48:15 +01:00
mudler e26b55a6a8 Add tests 2025-03-25 17:58:59 +01:00
mudler ca3420c791 fixup silly mistake
Signed-off-by: mudler <mudler@localai.io>
2025-03-25 17:25:59 +01:00
mudler abd6d1bbf7 Do not allow to recursively follow plan actions
Signed-off-by: mudler <mudler@localai.io>
2025-03-25 16:59:13 +01:00
Ettore Di Giacinto d0cfc4c317 feat: track conversations inside connectors (#92)
* switch to observer pattern

Signed-off-by: mudler <mudler@localai.io>

* keep conversation history in telegram and slack

* generalize with conversation tracker

---------

Signed-off-by: mudler <mudler@localai.io>
2025-03-25 16:31:03 +01:00
Ettore Di Giacinto 53c1554d55 fix: do not track an internal currentConversation (#91)
It is prone to races, and does not really track all conversations for
each job

Signed-off-by: Ettore Di Giacinto <mudler@localai.io>
2025-03-25 00:36:09 +01:00
Ettore Di Giacinto b09749dddb try to resolve user IDs to enable bot to mention users (#89)
Signed-off-by: mudler <mudler@localai.io>
2025-03-24 22:20:25 +01:00
mudler b199c10ab7 do not re-generate avatar if already existing
Signed-off-by: mudler <mudler@localai.io>
2025-03-24 19:46:56 +01:00