Commit Graph

505 Commits

Author SHA1 Message Date
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
mudler c8abc5f28f fix(slack): do not convert, mention user when summoned by mentions
Signed-off-by: mudler <mudler@localai.io>
2025-03-24 15:41:57 +01:00
mudler 14948c965d feat(slack): update, improve links and mentions
Signed-off-by: mudler <mudler@localai.io>
2025-03-24 11:11:31 +01:00
Ettore Di Giacinto 558306a841 Update README.md 2025-03-24 10:23:05 +01:00
Richard Palethorpe fb41663330 fix(ui): Add connector templates to group-create 2025-03-24 08:54:36 +00:00
Richard Palethorpe 84836b8345 feat(ui): Add individual forms for each connector 2025-03-24 08:54:36 +00:00
Ettore Di Giacinto 5f2a2eaa24 feat(slack): show thought process (#83)
Signed-off-by: Ettore Di Giacinto <mudler@localai.io>
2025-03-23 22:43:13 +01:00
mudler 75a8d63e83 Finish moving types 2025-03-23 21:57:09 +01:00
mudler f0b8bfb4f4 no need to defer here
Signed-off-by: mudler <mudler@localai.io>
2025-03-23 11:57:01 +01:00
mudler fa25e7c077 fixup: pass pointer to pool
Signed-off-by: mudler <mudler@localai.io>
2025-03-23 11:53:36 +01:00
Ettore Di Giacinto 3a9169bdbe feat(agents): Create group of agents (#82)
* feat(ui): add section to create agents in group

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

* Enhance UX and do not display first form section

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

* fixups

* Small fixups on avatar creation

---------

Signed-off-by: Ettore Di Giacinto <mudler@localai.io>
2025-03-22 21:41:51 +01:00
Ettore Di Giacinto 3a921f6241 feat(ui): generate avatars (#80)
* feat(ui): generate avatars

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

* Show a placeholder if the image is not ready

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

* feat(avatar): generate prompt first

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

---------

Signed-off-by: mudler <mudler@localai.io>
Signed-off-by: Ettore Di Giacinto <mudler@localai.io>
2025-03-22 20:50:31 +01:00
Ettore Di Giacinto c1ac7b675a feat(api): add endpoint to create group of dedicated agents (#79)
Signed-off-by: mudler <mudler@localai.io>
2025-03-22 18:44:22 +01:00