Commit Graph

60 Commits

Author SHA1 Message Date
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
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
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
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
Ettore Di Giacinto
d689bb4331 feat(actions): add playground to test actions (#74)
Signed-off-by: Ettore Di Giacinto <mudler@localai.io>
2025-03-21 23:51:55 +01:00
Ettore Di Giacinto
33483ab4b9 feat(planning): enable agent planning (#68)
* feat(planning): Allow the agent to plan subtasks

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

* feat(planning): enable planning toggle in the webui

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

* feat(planning): take in consideration the overall goal

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

* Update core/action/plan.go

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

---------

Signed-off-by: mudler <mudler@localai.io>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-03-21 12:28:11 +01:00
mudler
0513a327f6 feat(ssh): allow to customize action name
Signed-off-by: mudler <mudler@localai.io>
2025-03-20 19:15:12 +01:00
mudler
c3d3bba32a feat(ssh): allow to specify a fixed host/user to run commands
Signed-off-by: mudler <mudler@localai.io>
2025-03-20 19:13:37 +01:00
Ettore Di Giacinto
1b187444fc feat: ssh as shell command (#67)
* feat(ssh): add action to run shell commands over a remote server

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

* fix(github): correctly get content

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

---------

Signed-off-by: mudler <mudler@localai.io>
2025-03-20 18:55:19 +01:00
Ettore Di Giacinto
d54abc3ed0 Revert "Generate connector form based on meta-data (#62)" (#65)
This reverts commit d7cfa7f0b2.
2025-03-20 18:21:19 +01:00
Ettore Di Giacinto
1e5b3f501f feat(github): add action to read github project's README (#64)
Signed-off-by: mudler <mudler@localai.io>
2025-03-20 17:43:15 +01:00
Richard Palethorpe
d7cfa7f0b2 Generate connector form based on meta-data (#62)
* Ignore volumes and exe

* Export form meta-data

* use dynamic metaform for connectors

* fix populating form
2025-03-20 16:00:37 +01:00
Ettore Di Giacinto
08785e2908 feat: add action to call other agents (#60)
Signed-off-by: Ettore Di Giacinto <mudler@localai.io>
2025-03-19 22:58:35 +01:00
Ettore Di Giacinto
f0bd184fbd feat: add twitter action and connector (#58)
* feat: add twitter post action

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

* feat: handle twitter post messages limits

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

* feat: add twitter connector, unify client

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

* make sure answers do not exceed twitter maximum

---------

Signed-off-by: mudler <mudler@localai.io>
Signed-off-by: Ettore Di Giacinto <mudler@localai.io>
2025-03-19 22:14:32 +01:00
Ettore Di Giacinto
aea0b424b9 try to get SHA of the content 2025-03-13 22:53:02 +01:00
Ettore Di Giacinto
5e73be42cb Always try to get branch sha
Signed-off-by: Ettore Di Giacinto <mudler@localai.io>
2025-03-13 22:43:09 +01:00
Ettore Di Giacinto
53ebcdad5d Small fixups 2025-03-13 22:23:31 +01:00
Ettore Di Giacinto
a1cdabd0a8 Add github actions to comment on an issue or read the content
Signed-off-by: Ettore Di Giacinto <mudler@localai.io>
2025-03-13 22:17:44 +01:00
Ettore Di Giacinto
9347193fdc Need to fill more options to commit to github (#42)
Signed-off-by: Ettore Di Giacinto <mudler@localai.io>
2025-03-13 21:56:47 +01:00
Ettore Di Giacinto
efc82bde30 feat: add ActionGithubRepositoryCreateOrUpdate to Availableactions 2025-03-13 11:32:38 +01:00
Ettore Di Giacinto
6a451267d5 Return URL of issue opened
Signed-off-by: Ettore Di Giacinto <mudler@localai.io>
2025-03-12 23:01:50 +01:00
Ettore Di Giacinto
9ee0d89a6b Add github actions to upload and get files, update github dep
Signed-off-by: Ettore Di Giacinto <mudler@localai.io>
2025-03-12 22:50:45 +01:00
Ettore Di Giacinto
10f7c8ff13 feat(github): allow to customize action name
Signed-off-by: Ettore Di Giacinto <mudler@localai.io>
2025-03-12 22:15:52 +01:00
Ettore Di Giacinto
c69ee9e5f7 feat(github-actions): allow to bind to a specific repository
Signed-off-by: Ettore Di Giacinto <mudler@localai.io>
2025-03-12 21:59:31 +01:00
Richard Palethorpe
7486e68a17 Add Counter action to count things (#38)
* add host

* fix: make user name explicit in IRC

* feat: Add counter action
2025-03-11 22:54:35 +01:00
Ettore Di Giacinto
d451919414 feat(edit): allow to edit agents (#36) 2025-03-11 22:32:13 +01:00
mudler
0b71d8dc10 feat: make slack process images 2025-03-09 23:34:49 +01:00
Ettore Di Giacinto
b884d9433a make sure /tmp exists 2025-03-07 22:51:34 +01:00
Richard Palethorpe
f2e7010297 Add IRC connector 2025-03-07 12:56:24 +00:00
Ettore Di Giacinto
7492a3ab3b Change env vars to be more meaningful 2025-03-05 22:19:07 +01:00
Ettore Di Giacinto
d288755444 Automatically save all conversations 2025-03-04 22:22:16 +01:00
Ettore Di Giacinto
5e52383a99 Refactorings 2025-03-02 22:44:54 +01:00
Ettore Di Giacinto
042c1ee65c Uniq results 2025-03-01 22:20:49 +01:00
Ettore Di Giacinto
3a7b5e1461 return metadatas and conversations in job results. Consume them in Slack connector to use attachments in responses 2025-03-01 22:10:21 +01:00
Ettore Di Giacinto
4d6b04c6ed Enable optional scaping of messages 2025-03-01 21:30:16 +01:00
Ettore Di Giacinto
70c389ce0b refactors 2025-03-01 21:30:16 +01:00
mudler
5b4f618ca3 Standardize action results 2025-03-01 17:27:07 +01:00
mudler
8492c95cb6 Convert markdown to slack markdown 2025-03-01 16:33:50 +01:00
mudler
a75feaab4e Simplify, no need to add system prompt when asking for reply 2025-03-01 16:17:27 +01:00