diff --git a/Makefile b/Makefile index a5576e7..b8101d7 100644 --- a/Makefile +++ b/Makefile @@ -4,15 +4,19 @@ IMAGE_NAME?=webui tests: $(GOCMD) run github.com/onsi/ginkgo/v2/ginkgo --fail-fast -v -r ./... -webui-nokb: - $(MAKE) webui KBDISABLEINDEX=true +run-nokb: + $(MAKE) run KBDISABLEINDEX=true -.PHONY: webui -webui: +.PHONY: build +build: + $(GOCMD) build -o localagent ./ + +.PHONY: run +run: $(GOCMD) run ./ -webui-image: +build-image: docker build -t $(IMAGE_NAME) -f Dockerfile.webui . -webui-push: +image-push: docker push $(IMAGE_NAME) diff --git a/README.md b/README.md index 29c8aa5..687b852 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -![](https://github.com/mudler/local-agent-framework/assets/2420543/1f9a974e-3d57-45bd-9e80-709622a48964) +![](https://github.com/mudler/LocalAgent/assets/2420543/1f9a974e-3d57-45bd-9e80-709622a48964) ## Connectors diff --git a/core/action/custom.go b/core/action/custom.go index f493e5c..3bd34b6 100644 --- a/core/action/custom.go +++ b/core/action/custom.go @@ -5,7 +5,7 @@ import ( "fmt" "strings" - "github.com/mudler/local-agent-framework/pkg/xlog" + "github.com/mudler/LocalAgent/pkg/xlog" "github.com/sashabaranov/go-openai/jsonschema" "github.com/traefik/yaegi/interp" "github.com/traefik/yaegi/stdlib" diff --git a/core/action/custom_test.go b/core/action/custom_test.go index 00c0e7e..743e965 100644 --- a/core/action/custom_test.go +++ b/core/action/custom_test.go @@ -3,7 +3,7 @@ package action_test import ( "context" - . "github.com/mudler/local-agent-framework/core/action" + . "github.com/mudler/LocalAgent/core/action" . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" diff --git a/core/agent/actions.go b/core/agent/actions.go index b0c9f5e..f6c1f9f 100644 --- a/core/agent/actions.go +++ b/core/agent/actions.go @@ -4,8 +4,8 @@ import ( "context" "fmt" - "github.com/mudler/local-agent-framework/core/action" - "github.com/mudler/local-agent-framework/pkg/xlog" + "github.com/mudler/LocalAgent/core/action" + "github.com/mudler/LocalAgent/pkg/xlog" "github.com/sashabaranov/go-openai" ) diff --git a/core/agent/agent.go b/core/agent/agent.go index fe2d7ea..60f742e 100644 --- a/core/agent/agent.go +++ b/core/agent/agent.go @@ -8,10 +8,10 @@ import ( "sync" "time" - "github.com/mudler/local-agent-framework/pkg/xlog" + "github.com/mudler/LocalAgent/pkg/xlog" - "github.com/mudler/local-agent-framework/core/action" - "github.com/mudler/local-agent-framework/pkg/llm" + "github.com/mudler/LocalAgent/core/action" + "github.com/mudler/LocalAgent/pkg/llm" "github.com/sashabaranov/go-openai" ) diff --git a/core/agent/agent_test.go b/core/agent/agent_test.go index c10b1b1..3b468bd 100644 --- a/core/agent/agent_test.go +++ b/core/agent/agent_test.go @@ -4,10 +4,10 @@ import ( "context" "fmt" - "github.com/mudler/local-agent-framework/pkg/xlog" + "github.com/mudler/LocalAgent/pkg/xlog" - "github.com/mudler/local-agent-framework/core/action" - . "github.com/mudler/local-agent-framework/core/agent" + "github.com/mudler/LocalAgent/core/action" + . "github.com/mudler/LocalAgent/core/agent" . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" "github.com/sashabaranov/go-openai/jsonschema" diff --git a/core/agent/state.go b/core/agent/state.go index 1ac9e85..e0c6389 100644 --- a/core/agent/state.go +++ b/core/agent/state.go @@ -6,8 +6,8 @@ import ( "os" "path/filepath" - "github.com/mudler/local-agent-framework/core/action" - "github.com/mudler/local-agent-framework/pkg/llm" + "github.com/mudler/LocalAgent/core/action" + "github.com/mudler/LocalAgent/pkg/llm" ) // PromptHUD contains diff --git a/core/agent/state_test.go b/core/agent/state_test.go index c809d60..ee328e5 100644 --- a/core/agent/state_test.go +++ b/core/agent/state_test.go @@ -1,7 +1,7 @@ package agent_test import ( - . "github.com/mudler/local-agent-framework/core/agent" + . "github.com/mudler/LocalAgent/core/agent" . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" ) diff --git a/core/agent/templates.go b/core/agent/templates.go index 5f6190d..00f942d 100644 --- a/core/agent/templates.go +++ b/core/agent/templates.go @@ -5,7 +5,7 @@ import ( "html/template" "time" - "github.com/mudler/local-agent-framework/core/action" + "github.com/mudler/LocalAgent/core/action" "github.com/sashabaranov/go-openai" ) diff --git a/core/state/config.go b/core/state/config.go index b91c308..bcb2df1 100644 --- a/core/state/config.go +++ b/core/state/config.go @@ -1,7 +1,7 @@ package state import ( - "github.com/mudler/local-agent-framework/core/agent" + "github.com/mudler/LocalAgent/core/agent" ) type ConnectorConfig struct { diff --git a/core/state/memory.go b/core/state/memory.go index ad9be97..c54d0e3 100644 --- a/core/state/memory.go +++ b/core/state/memory.go @@ -5,14 +5,14 @@ import ( "fmt" "io" - "github.com/mudler/local-agent-framework/pkg/xlog" + "github.com/mudler/LocalAgent/pkg/xlog" "net/http" "os" "strings" "sync" - . "github.com/mudler/local-agent-framework/core/agent" + . "github.com/mudler/LocalAgent/core/agent" "jaytaylor.com/html2text" sitemap "github.com/oxffaa/gopher-parse-sitemap" diff --git a/core/state/pool.go b/core/state/pool.go index 628a4a6..92e435c 100644 --- a/core/state/pool.go +++ b/core/state/pool.go @@ -10,12 +10,12 @@ import ( "sync" "time" - "github.com/mudler/local-agent-framework/core/agent" - . "github.com/mudler/local-agent-framework/core/agent" - "github.com/mudler/local-agent-framework/core/sse" - "github.com/mudler/local-agent-framework/pkg/utils" + "github.com/mudler/LocalAgent/core/agent" + . "github.com/mudler/LocalAgent/core/agent" + "github.com/mudler/LocalAgent/core/sse" + "github.com/mudler/LocalAgent/pkg/utils" - "github.com/mudler/local-agent-framework/pkg/xlog" + "github.com/mudler/LocalAgent/pkg/xlog" ) type AgentPool struct { diff --git a/go.mod b/go.mod index 1a874be..9c4742a 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/mudler/local-agent-framework +module github.com/mudler/LocalAgent go 1.22.0 diff --git a/main.go b/main.go index d847cbe..e5f1e60 100644 --- a/main.go +++ b/main.go @@ -5,11 +5,11 @@ import ( "os" "path/filepath" - "github.com/mudler/local-agent-framework/core/agent" - "github.com/mudler/local-agent-framework/core/state" - "github.com/mudler/local-agent-framework/pkg/llm" - rag "github.com/mudler/local-agent-framework/pkg/vectorstore" - "github.com/mudler/local-agent-framework/webui" + "github.com/mudler/LocalAgent/core/agent" + "github.com/mudler/LocalAgent/core/state" + "github.com/mudler/LocalAgent/pkg/llm" + rag "github.com/mudler/LocalAgent/pkg/vectorstore" + "github.com/mudler/LocalAgent/webui" ) var testModel = os.Getenv("TEST_MODEL") diff --git a/services/actions/browse.go b/services/actions/browse.go index eef67ab..1057982 100644 --- a/services/actions/browse.go +++ b/services/actions/browse.go @@ -6,7 +6,7 @@ import ( "io" "net/http" - "github.com/mudler/local-agent-framework/core/action" + "github.com/mudler/LocalAgent/core/action" "github.com/sashabaranov/go-openai/jsonschema" "jaytaylor.com/html2text" ) diff --git a/services/actions/githubissuecloser.go b/services/actions/githubissuecloser.go index b3924ad..6468617 100644 --- a/services/actions/githubissuecloser.go +++ b/services/actions/githubissuecloser.go @@ -5,7 +5,7 @@ import ( "fmt" "github.com/google/go-github/v61/github" - "github.com/mudler/local-agent-framework/core/action" + "github.com/mudler/LocalAgent/core/action" "github.com/sashabaranov/go-openai/jsonschema" ) diff --git a/services/actions/githubissuelabeler.go b/services/actions/githubissuelabeler.go index a8297eb..9ac159b 100644 --- a/services/actions/githubissuelabeler.go +++ b/services/actions/githubissuelabeler.go @@ -7,7 +7,7 @@ import ( "strings" "github.com/google/go-github/v61/github" - "github.com/mudler/local-agent-framework/core/action" + "github.com/mudler/LocalAgent/core/action" "github.com/sashabaranov/go-openai/jsonschema" ) diff --git a/services/actions/githubissueopener.go b/services/actions/githubissueopener.go index 87eb4e1..4e4548c 100644 --- a/services/actions/githubissueopener.go +++ b/services/actions/githubissueopener.go @@ -5,7 +5,7 @@ import ( "fmt" "github.com/google/go-github/v61/github" - "github.com/mudler/local-agent-framework/core/action" + "github.com/mudler/LocalAgent/core/action" "github.com/sashabaranov/go-openai/jsonschema" ) diff --git a/services/actions/githubissuesearch.go b/services/actions/githubissuesearch.go index 9b114bf..73e33de 100644 --- a/services/actions/githubissuesearch.go +++ b/services/actions/githubissuesearch.go @@ -6,7 +6,7 @@ import ( "log/slog" "github.com/google/go-github/v61/github" - "github.com/mudler/local-agent-framework/core/action" + "github.com/mudler/LocalAgent/core/action" "github.com/sashabaranov/go-openai/jsonschema" ) diff --git a/services/actions/scrape.go b/services/actions/scrape.go index 7cd4937..a2003f7 100644 --- a/services/actions/scrape.go +++ b/services/actions/scrape.go @@ -4,7 +4,7 @@ import ( "context" "fmt" - "github.com/mudler/local-agent-framework/core/action" + "github.com/mudler/LocalAgent/core/action" "github.com/sashabaranov/go-openai/jsonschema" "github.com/tmc/langchaingo/tools/scraper" ) diff --git a/services/actions/search.go b/services/actions/search.go index f7c08df..db54177 100644 --- a/services/actions/search.go +++ b/services/actions/search.go @@ -5,7 +5,7 @@ import ( "fmt" "log/slog" - "github.com/mudler/local-agent-framework/core/action" + "github.com/mudler/LocalAgent/core/action" "github.com/sashabaranov/go-openai/jsonschema" "github.com/tmc/langchaingo/tools/duckduckgo" ) diff --git a/services/actions/sendmail.go b/services/actions/sendmail.go index c9b113d..b67818d 100644 --- a/services/actions/sendmail.go +++ b/services/actions/sendmail.go @@ -5,7 +5,7 @@ import ( "fmt" "net/smtp" - "github.com/mudler/local-agent-framework/core/action" + "github.com/mudler/LocalAgent/core/action" "github.com/sashabaranov/go-openai/jsonschema" ) diff --git a/services/actions/wikipedia.go b/services/actions/wikipedia.go index 41be55f..d6051b2 100644 --- a/services/actions/wikipedia.go +++ b/services/actions/wikipedia.go @@ -4,7 +4,7 @@ import ( "context" "fmt" - "github.com/mudler/local-agent-framework/core/action" + "github.com/mudler/LocalAgent/core/action" "github.com/sashabaranov/go-openai/jsonschema" "github.com/tmc/langchaingo/tools/wikipedia" ) diff --git a/services/connectors/discord.go b/services/connectors/discord.go index a8b3f30..8365058 100644 --- a/services/connectors/discord.go +++ b/services/connectors/discord.go @@ -4,8 +4,8 @@ import ( "strings" "github.com/bwmarrin/discordgo" - "github.com/mudler/local-agent-framework/core/agent" - "github.com/mudler/local-agent-framework/pkg/xlog" + "github.com/mudler/LocalAgent/core/agent" + "github.com/mudler/LocalAgent/pkg/xlog" ) type Discord struct { diff --git a/services/connectors/githubissue.go b/services/connectors/githubissue.go index 6553666..017cf8d 100644 --- a/services/connectors/githubissue.go +++ b/services/connectors/githubissue.go @@ -6,8 +6,8 @@ import ( "time" "github.com/google/go-github/v61/github" - "github.com/mudler/local-agent-framework/core/agent" - "github.com/mudler/local-agent-framework/pkg/xlog" + "github.com/mudler/LocalAgent/core/agent" + "github.com/mudler/LocalAgent/pkg/xlog" "github.com/sashabaranov/go-openai" ) diff --git a/services/connectors/githubpr.go b/services/connectors/githubpr.go index 112b9bd..1c151e1 100644 --- a/services/connectors/githubpr.go +++ b/services/connectors/githubpr.go @@ -6,8 +6,8 @@ import ( "time" "github.com/google/go-github/v61/github" - "github.com/mudler/local-agent-framework/core/agent" - "github.com/mudler/local-agent-framework/pkg/xlog" + "github.com/mudler/LocalAgent/core/agent" + "github.com/mudler/LocalAgent/pkg/xlog" "github.com/sashabaranov/go-openai" ) diff --git a/services/connectors/slack.go b/services/connectors/slack.go index eaf7812..2582282 100644 --- a/services/connectors/slack.go +++ b/services/connectors/slack.go @@ -6,9 +6,9 @@ import ( "os" "strings" - "github.com/mudler/local-agent-framework/pkg/xlog" + "github.com/mudler/LocalAgent/pkg/xlog" - "github.com/mudler/local-agent-framework/core/agent" + "github.com/mudler/LocalAgent/core/agent" "github.com/slack-go/slack/socketmode" diff --git a/services/connectors/telegram.go b/services/connectors/telegram.go index b6c1290..37de7dd 100644 --- a/services/connectors/telegram.go +++ b/services/connectors/telegram.go @@ -8,7 +8,7 @@ import ( "github.com/go-telegram/bot" "github.com/go-telegram/bot/models" - "github.com/mudler/local-agent-framework/core/agent" + "github.com/mudler/LocalAgent/core/agent" ) type Telegram struct { diff --git a/webui/actions.go b/webui/actions.go index e817fcf..dc7677b 100644 --- a/webui/actions.go +++ b/webui/actions.go @@ -4,12 +4,12 @@ import ( "context" "encoding/json" - "github.com/mudler/local-agent-framework/core/action" - "github.com/mudler/local-agent-framework/core/state" - "github.com/mudler/local-agent-framework/pkg/xlog" + "github.com/mudler/LocalAgent/core/action" + "github.com/mudler/LocalAgent/core/state" + "github.com/mudler/LocalAgent/pkg/xlog" - "github.com/mudler/local-agent-framework/core/agent" - "github.com/mudler/local-agent-framework/services/actions" + "github.com/mudler/LocalAgent/core/agent" + "github.com/mudler/LocalAgent/services/actions" ) const ( diff --git a/webui/app.go b/webui/app.go index 9e5f93e..69cb8e1 100644 --- a/webui/app.go +++ b/webui/app.go @@ -8,11 +8,11 @@ import ( "os" "strings" - "github.com/mudler/local-agent-framework/pkg/xlog" + "github.com/mudler/LocalAgent/pkg/xlog" - "github.com/mudler/local-agent-framework/core/agent" - "github.com/mudler/local-agent-framework/core/sse" - "github.com/mudler/local-agent-framework/core/state" + "github.com/mudler/LocalAgent/core/agent" + "github.com/mudler/LocalAgent/core/sse" + "github.com/mudler/LocalAgent/core/state" "github.com/donseba/go-htmx" "github.com/dslipak/pdf" diff --git a/webui/connectors.go b/webui/connectors.go index 5d920de..b092962 100644 --- a/webui/connectors.go +++ b/webui/connectors.go @@ -3,10 +3,10 @@ package webui import ( "encoding/json" - "github.com/mudler/local-agent-framework/pkg/xlog" - "github.com/mudler/local-agent-framework/services/connectors" + "github.com/mudler/LocalAgent/pkg/xlog" + "github.com/mudler/LocalAgent/services/connectors" - "github.com/mudler/local-agent-framework/core/state" + "github.com/mudler/LocalAgent/core/state" ) const ( diff --git a/webui/options.go b/webui/options.go index 58b7b3f..e20f338 100644 --- a/webui/options.go +++ b/webui/options.go @@ -1,6 +1,6 @@ package webui -import "github.com/mudler/local-agent-framework/core/state" +import "github.com/mudler/LocalAgent/core/state" type Config struct { DefaultChunkSize int diff --git a/webui/routes.go b/webui/routes.go index b6cce34..c835a0f 100644 --- a/webui/routes.go +++ b/webui/routes.go @@ -7,9 +7,9 @@ import ( fiber "github.com/gofiber/fiber/v2" "github.com/gofiber/fiber/v2/middleware/filesystem" - "github.com/mudler/local-agent-framework/core/agent" - "github.com/mudler/local-agent-framework/core/sse" - "github.com/mudler/local-agent-framework/core/state" + "github.com/mudler/LocalAgent/core/agent" + "github.com/mudler/LocalAgent/core/sse" + "github.com/mudler/LocalAgent/core/state" ) //go:embed views/*