diff --git a/.github/workflows/goreleaser.yml b/.github/workflows/goreleaser.yml
index 88cfbd0..6b19721 100644
--- a/.github/workflows/goreleaser.yml
+++ b/.github/workflows/goreleaser.yml
@@ -13,7 +13,7 @@ jobs:
goreleaser:
permissions:
contents: write
- runs-on: arc-runner-localagent
+ runs-on: arc-runner-localagi
steps:
- name: Checkout
uses: actions/checkout@v4
diff --git a/.github/workflows/image.yml b/.github/workflows/image.yml
index faee837..8143b41 100644
--- a/.github/workflows/image.yml
+++ b/.github/workflows/image.yml
@@ -11,7 +11,7 @@ concurrency:
cancel-in-progress: true
jobs:
containerImages:
- runs-on: arc-runner-localagent
+ runs-on: arc-runner-localagi
steps:
- name: Checkout
uses: actions/checkout@v4
diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml
index 72cfb32..4696746 100644
--- a/.github/workflows/tests.yml
+++ b/.github/workflows/tests.yml
@@ -12,7 +12,7 @@ concurrency:
cancel-in-progress: true
jobs:
test:
- runs-on: arc-runner-localagent
+ runs-on: arc-runner-localagi
steps:
- name: Checkout code
uses: actions/checkout@v2
diff --git a/.gitignore b/.gitignore
index 6c80f87..1830255 100644
--- a/.gitignore
+++ b/.gitignore
@@ -3,7 +3,7 @@ data/
pool
uploads/
local-agent-framework
-localagent
-LocalAgent
+localagi
+LocalAGI
**/.env
.vscode
diff --git a/.goreleaser.yml b/.goreleaser.yml
index ea229bc..8d32f80 100644
--- a/.goreleaser.yml
+++ b/.goreleaser.yml
@@ -2,8 +2,8 @@
version: 2
builds:
- main: ./
- id: "localagent"
- binary: localagent
+ id: "localagi"
+ binary: localagi
ldflags:
- -w -s
# - -X github.com/internal.Version={{.Tag}}
diff --git a/Dockerfile.webui b/Dockerfile.webui
index 63487e1..997bd03 100644
--- a/Dockerfile.webui
+++ b/Dockerfile.webui
@@ -45,14 +45,14 @@ COPY . .
COPY --from=ui-builder /app/dist /work/webui/react-ui/dist
# Build the application
-RUN go build -ldflags="$LDFLAGS" -o localagent ./
+RUN go build -ldflags="$LDFLAGS" -o localagi ./
FROM scratch
# Copy the webui binary from the builder stage to the final image
-COPY --from=builder /work/localagent /localagent
+COPY --from=builder /work/localagi /localagi
COPY --from=builder /etc/ssl/ /etc/ssl/
COPY --from=builder /tmp /tmp
# Define the command that will be run when the container is started
-ENTRYPOINT ["/localagent"]
+ENTRYPOINT ["/localagi"]
diff --git a/Makefile b/Makefile
index 191e5f7..9a5f734 100644
--- a/Makefile
+++ b/Makefile
@@ -9,7 +9,7 @@ cleanup-tests:
docker compose down
tests: prepare-tests
- LOCALAGENT_MODEL="arcee-agent" LOCALAI_API_URL="http://localhost:8081" LOCALAGENT_API_URL="http://localhost:8080" $(GOCMD) run github.com/onsi/ginkgo/v2/ginkgo --fail-fast -v -r ./...
+ LOCALAGI_MODEL="arcee-agent" LOCALAI_API_URL="http://localhost:8081" LOCALAGI_API_URL="http://localhost:8080" $(GOCMD) run github.com/onsi/ginkgo/v2/ginkgo --fail-fast -v -r ./...
run-nokb:
$(MAKE) run KBDISABLEINDEX=true
@@ -19,7 +19,7 @@ webui/react-ui/dist:
.PHONY: build
build: webui/react-ui/dist
- $(GOCMD) build -o localagent ./
+ $(GOCMD) build -o localagi ./
.PHONY: run
run: webui/react-ui/dist
diff --git a/README.md b/README.md
index 3c8283d..0e2bed6 100644
--- a/README.md
+++ b/README.md
@@ -96,21 +96,21 @@ Explore detailed documentation including:
| Variable | What It Does |
|----------|--------------|
-| `LOCALAGENT_MODEL` | Your go-to model |
-| `LOCALAGENT_MULTIMODAL_MODEL` | Optional model for multimodal capabilities |
-| `LOCALAGENT_LLM_API_URL` | OpenAI-compatible API server URL |
-| `LOCALAGENT_LLM_API_KEY` | API authentication |
-| `LOCALAGENT_TIMEOUT` | Request timeout settings |
-| `LOCALAGENT_STATE_DIR` | Where state gets stored |
-| `LOCALAGENT_LOCALRAG_URL` | LocalRAG connection |
-| `LOCALAGENT_ENABLE_CONVERSATIONS_LOGGING` | Toggle conversation logs |
-| `LOCALAGENT_API_KEYS` | A comma separated list of api keys used for authentication |
+| `LOCALAGI_MODEL` | Your go-to model |
+| `LOCALAGI_MULTIMODAL_MODEL` | Optional model for multimodal capabilities |
+| `LOCALAGI_LLM_API_URL` | OpenAI-compatible API server URL |
+| `LOCALAGI_LLM_API_KEY` | API authentication |
+| `LOCALAGI_TIMEOUT` | Request timeout settings |
+| `LOCALAGI_STATE_DIR` | Where state gets stored |
+| `LOCALAGI_LOCALRAG_URL` | LocalRAG connection |
+| `LOCALAGI_ENABLE_CONVERSATIONS_LOGGING` | Toggle conversation logs |
+| `LOCALAGI_API_KEYS` | A comma separated list of api keys used for authentication |
## Installation Options
### Pre-Built Binaries
-Download ready-to-run binaries from the [Releases](https://github.com/mudler/LocalAgent/releases) page.
+Download ready-to-run binaries from the [Releases](https://github.com/mudler/LocalAGI/releases) page.
### Source Build
@@ -121,16 +121,16 @@ Requirements:
```bash
# Clone repo
-git clone https://github.com/mudler/LocalAgent.git
-cd LocalAgent
+git clone https://github.com/mudler/LocalAGI.git
+cd LocalAGI
# Build it
cd webui/react-ui && bun i && bun run build
cd ../..
-go build -o localagent
+go build -o localagi
# Run it
-./localagent
+./localagi
```
### Development
@@ -139,8 +139,8 @@ The development workflow is similar to the source build, but with additional ste
```bash
# Clone repo
-git clone https://github.com/mudler/LocalAgent.git
-cd LocalAgent
+git clone https://github.com/mudler/LocalAGI.git
+cd LocalAGI
# Install dependencies and start frontend development server
cd webui/react-ui && bun i && bun run dev
@@ -216,7 +216,7 @@ Connect to IRC networks:
{
"server": "irc.example.com",
"port": "6667",
- "nickname": "LocalAgentBot",
+ "nickname": "LocalAGIBot",
"channel": "#yourchannel",
"alwaysReply": "false"
}
diff --git a/core/action/custom.go b/core/action/custom.go
index 5eaef04..be8157d 100644
--- a/core/action/custom.go
+++ b/core/action/custom.go
@@ -5,9 +5,9 @@ import (
"fmt"
"strings"
- "github.com/mudler/LocalAgent/core/types"
- "github.com/mudler/LocalAgent/pkg/config"
- "github.com/mudler/LocalAgent/pkg/xlog"
+ "github.com/mudler/LocalAGI/core/types"
+ "github.com/mudler/LocalAGI/pkg/config"
+ "github.com/mudler/LocalAGI/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 1d0afc5..f0171db 100644
--- a/core/action/custom_test.go
+++ b/core/action/custom_test.go
@@ -3,8 +3,8 @@ package action_test
import (
"context"
- . "github.com/mudler/LocalAgent/core/action"
- "github.com/mudler/LocalAgent/core/types"
+ . "github.com/mudler/LocalAGI/core/action"
+ "github.com/mudler/LocalAGI/core/types"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
diff --git a/core/action/intention.go b/core/action/intention.go
index 77ef0fa..8316c9f 100644
--- a/core/action/intention.go
+++ b/core/action/intention.go
@@ -3,7 +3,7 @@ package action
import (
"context"
- "github.com/mudler/LocalAgent/core/types"
+ "github.com/mudler/LocalAGI/core/types"
"github.com/sashabaranov/go-openai/jsonschema"
)
diff --git a/core/action/newconversation.go b/core/action/newconversation.go
index 50e831a..aa1a859 100644
--- a/core/action/newconversation.go
+++ b/core/action/newconversation.go
@@ -3,7 +3,7 @@ package action
import (
"context"
- "github.com/mudler/LocalAgent/core/types"
+ "github.com/mudler/LocalAGI/core/types"
"github.com/sashabaranov/go-openai/jsonschema"
)
diff --git a/core/action/noreply.go b/core/action/noreply.go
index 7575b79..c2ed874 100644
--- a/core/action/noreply.go
+++ b/core/action/noreply.go
@@ -3,7 +3,7 @@ package action
import (
"context"
- "github.com/mudler/LocalAgent/core/types"
+ "github.com/mudler/LocalAGI/core/types"
)
// StopActionName is the name of the action
diff --git a/core/action/plan.go b/core/action/plan.go
index 66e9042..f1c4c5d 100644
--- a/core/action/plan.go
+++ b/core/action/plan.go
@@ -3,7 +3,7 @@ package action
import (
"context"
- "github.com/mudler/LocalAgent/core/types"
+ "github.com/mudler/LocalAGI/core/types"
"github.com/sashabaranov/go-openai/jsonschema"
)
diff --git a/core/action/reasoning.go b/core/action/reasoning.go
index 19daaae..ee077ed 100644
--- a/core/action/reasoning.go
+++ b/core/action/reasoning.go
@@ -3,7 +3,7 @@ package action
import (
"context"
- "github.com/mudler/LocalAgent/core/types"
+ "github.com/mudler/LocalAGI/core/types"
"github.com/sashabaranov/go-openai/jsonschema"
)
diff --git a/core/action/reply.go b/core/action/reply.go
index 62ce86c..2d99c68 100644
--- a/core/action/reply.go
+++ b/core/action/reply.go
@@ -3,7 +3,7 @@ package action
import (
"context"
- "github.com/mudler/LocalAgent/core/types"
+ "github.com/mudler/LocalAGI/core/types"
"github.com/sashabaranov/go-openai/jsonschema"
)
diff --git a/core/action/state.go b/core/action/state.go
index 6121f82..8ce77e9 100644
--- a/core/action/state.go
+++ b/core/action/state.go
@@ -4,7 +4,7 @@ import (
"context"
"fmt"
- "github.com/mudler/LocalAgent/core/types"
+ "github.com/mudler/LocalAGI/core/types"
"github.com/sashabaranov/go-openai/jsonschema"
)
diff --git a/core/agent/actions.go b/core/agent/actions.go
index 4a954be..164a46b 100644
--- a/core/agent/actions.go
+++ b/core/agent/actions.go
@@ -6,10 +6,10 @@ import (
"fmt"
"os"
- "github.com/mudler/LocalAgent/core/action"
- "github.com/mudler/LocalAgent/core/types"
+ "github.com/mudler/LocalAGI/core/action"
+ "github.com/mudler/LocalAGI/core/types"
- "github.com/mudler/LocalAgent/pkg/xlog"
+ "github.com/mudler/LocalAGI/pkg/xlog"
"github.com/sashabaranov/go-openai"
)
diff --git a/core/agent/agent.go b/core/agent/agent.go
index ae2e750..3840511 100644
--- a/core/agent/agent.go
+++ b/core/agent/agent.go
@@ -7,11 +7,11 @@ import (
"sync"
"time"
- "github.com/mudler/LocalAgent/pkg/xlog"
+ "github.com/mudler/LocalAGI/pkg/xlog"
- "github.com/mudler/LocalAgent/core/action"
- "github.com/mudler/LocalAgent/core/types"
- "github.com/mudler/LocalAgent/pkg/llm"
+ "github.com/mudler/LocalAGI/core/action"
+ "github.com/mudler/LocalAGI/core/types"
+ "github.com/mudler/LocalAGI/pkg/llm"
"github.com/sashabaranov/go-openai"
)
diff --git a/core/agent/agent_suite_test.go b/core/agent/agent_suite_test.go
index 92aa9ce..501d3dd 100644
--- a/core/agent/agent_suite_test.go
+++ b/core/agent/agent_suite_test.go
@@ -13,7 +13,7 @@ func TestAgent(t *testing.T) {
RunSpecs(t, "Agent test suite")
}
-var testModel = os.Getenv("LOCALAGENT_MODEL")
+var testModel = os.Getenv("LOCALAGI_MODEL")
var apiURL = os.Getenv("LOCALAI_API_URL")
var apiKeyURL = os.Getenv("LOCALAI_API_KEY")
diff --git a/core/agent/agent_test.go b/core/agent/agent_test.go
index 45384d9..c02ee3f 100644
--- a/core/agent/agent_test.go
+++ b/core/agent/agent_test.go
@@ -6,11 +6,11 @@ import (
"strings"
"sync"
- "github.com/mudler/LocalAgent/pkg/xlog"
- "github.com/mudler/LocalAgent/services/actions"
+ "github.com/mudler/LocalAGI/pkg/xlog"
+ "github.com/mudler/LocalAGI/services/actions"
- . "github.com/mudler/LocalAgent/core/agent"
- "github.com/mudler/LocalAgent/core/types"
+ . "github.com/mudler/LocalAGI/core/agent"
+ "github.com/mudler/LocalAGI/core/types"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
"github.com/sashabaranov/go-openai"
diff --git a/core/agent/identity.go b/core/agent/identity.go
index 7789b13..a474d67 100644
--- a/core/agent/identity.go
+++ b/core/agent/identity.go
@@ -4,7 +4,7 @@ import (
"fmt"
"os"
- "github.com/mudler/LocalAgent/pkg/llm"
+ "github.com/mudler/LocalAGI/pkg/llm"
)
func (a *Agent) generateIdentity(guidance string) error {
diff --git a/core/agent/knowledgebase.go b/core/agent/knowledgebase.go
index e80940c..4ba9ba4 100644
--- a/core/agent/knowledgebase.go
+++ b/core/agent/knowledgebase.go
@@ -6,7 +6,7 @@ import (
"path/filepath"
"time"
- "github.com/mudler/LocalAgent/pkg/xlog"
+ "github.com/mudler/LocalAGI/pkg/xlog"
"github.com/sashabaranov/go-openai"
)
diff --git a/core/agent/mcp.go b/core/agent/mcp.go
index bb1e178..ee67822 100644
--- a/core/agent/mcp.go
+++ b/core/agent/mcp.go
@@ -7,8 +7,8 @@ import (
mcp "github.com/metoro-io/mcp-golang"
"github.com/metoro-io/mcp-golang/transport/http"
- "github.com/mudler/LocalAgent/core/types"
- "github.com/mudler/LocalAgent/pkg/xlog"
+ "github.com/mudler/LocalAGI/core/types"
+ "github.com/mudler/LocalAGI/pkg/xlog"
"github.com/sashabaranov/go-openai/jsonschema"
)
diff --git a/core/agent/options.go b/core/agent/options.go
index f79b740..1a4ba4c 100644
--- a/core/agent/options.go
+++ b/core/agent/options.go
@@ -5,7 +5,7 @@ import (
"strings"
"time"
- "github.com/mudler/LocalAgent/core/types"
+ "github.com/mudler/LocalAGI/core/types"
"github.com/sashabaranov/go-openai"
)
diff --git a/core/agent/state.go b/core/agent/state.go
index 7d42767..0b02af9 100644
--- a/core/agent/state.go
+++ b/core/agent/state.go
@@ -6,7 +6,7 @@ import (
"os"
"path/filepath"
- "github.com/mudler/LocalAgent/core/action"
+ "github.com/mudler/LocalAGI/core/action"
"github.com/sashabaranov/go-openai/jsonschema"
)
diff --git a/core/agent/state_test.go b/core/agent/state_test.go
index 00fe45a..a57e8b8 100644
--- a/core/agent/state_test.go
+++ b/core/agent/state_test.go
@@ -1,7 +1,7 @@
package agent_test
import (
- . "github.com/mudler/LocalAgent/core/agent"
+ . "github.com/mudler/LocalAGI/core/agent"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
)
diff --git a/core/agent/templates.go b/core/agent/templates.go
index 5c9bf5a..227668b 100644
--- a/core/agent/templates.go
+++ b/core/agent/templates.go
@@ -5,7 +5,7 @@ import (
"html/template"
"time"
- "github.com/mudler/LocalAgent/core/types"
+ "github.com/mudler/LocalAGI/core/types"
"github.com/sashabaranov/go-openai"
)
diff --git a/core/state/config.go b/core/state/config.go
index da3bfa4..8d46fe2 100644
--- a/core/state/config.go
+++ b/core/state/config.go
@@ -3,9 +3,9 @@ package state
import (
"encoding/json"
- "github.com/mudler/LocalAgent/core/agent"
- "github.com/mudler/LocalAgent/core/types"
- "github.com/mudler/LocalAgent/pkg/config"
+ "github.com/mudler/LocalAGI/core/agent"
+ "github.com/mudler/LocalAGI/core/types"
+ "github.com/mudler/LocalAGI/pkg/config"
)
type ConnectorConfig struct {
@@ -30,10 +30,10 @@ func (d DynamicPromptsConfig) ToMap() map[string]string {
}
type AgentConfig struct {
- Connector []ConnectorConfig `json:"connectors" form:"connectors" `
- Actions []ActionsConfig `json:"actions" form:"actions"`
+ Connector []ConnectorConfig `json:"connectors" form:"connectors" `
+ Actions []ActionsConfig `json:"actions" form:"actions"`
DynamicPrompts []DynamicPromptsConfig `json:"dynamic_prompts" form:"dynamic_prompts"`
- MCPServers []agent.MCPServer `json:"mcp_servers" form:"mcp_servers"`
+ MCPServers []agent.MCPServer `json:"mcp_servers" form:"mcp_servers"`
Description string `json:"description" form:"description"`
@@ -71,8 +71,8 @@ type AgentConfigMeta struct {
}
func NewAgentConfigMeta(
- actionsConfig []config.FieldGroup,
- connectorsConfig []config.FieldGroup,
+ actionsConfig []config.FieldGroup,
+ connectorsConfig []config.FieldGroup,
dynamicPromptsConfig []config.FieldGroup,
) AgentConfigMeta {
return AgentConfigMeta{
diff --git a/core/state/internal.go b/core/state/internal.go
index 5e297f8..ce3fe4b 100644
--- a/core/state/internal.go
+++ b/core/state/internal.go
@@ -1,7 +1,7 @@
package state
import (
- . "github.com/mudler/LocalAgent/core/agent"
+ . "github.com/mudler/LocalAGI/core/agent"
)
type AgentPoolInternalAPI struct {
diff --git a/core/state/pool.go b/core/state/pool.go
index 11f75a8..2cb7f29 100644
--- a/core/state/pool.go
+++ b/core/state/pool.go
@@ -12,16 +12,16 @@ import (
"sync"
"time"
- . "github.com/mudler/LocalAgent/core/agent"
- "github.com/mudler/LocalAgent/core/sse"
- "github.com/mudler/LocalAgent/core/types"
- "github.com/mudler/LocalAgent/pkg/llm"
- "github.com/mudler/LocalAgent/pkg/localrag"
- "github.com/mudler/LocalAgent/pkg/utils"
+ . "github.com/mudler/LocalAGI/core/agent"
+ "github.com/mudler/LocalAGI/core/sse"
+ "github.com/mudler/LocalAGI/core/types"
+ "github.com/mudler/LocalAGI/pkg/llm"
+ "github.com/mudler/LocalAGI/pkg/localrag"
+ "github.com/mudler/LocalAGI/pkg/utils"
"github.com/sashabaranov/go-openai"
"github.com/sashabaranov/go-openai/jsonschema"
- "github.com/mudler/LocalAgent/pkg/xlog"
+ "github.com/mudler/LocalAGI/pkg/xlog"
)
type AgentPool struct {
diff --git a/docker-compose.gpu.intel.yaml b/docker-compose.gpu.intel.yaml
index 0156d83..e165a88 100644
--- a/docker-compose.gpu.intel.yaml
+++ b/docker-compose.gpu.intel.yaml
@@ -49,7 +49,7 @@ services:
image: busybox
command: ["sh", "-c", "until wget -q -O - http://localrecall:8080 > /dev/null 2>&1; do echo 'Waiting for localrecall...'; sleep 1; done; echo 'localrecall is up!'"]
- localagent:
+ localagi:
depends_on:
localai:
condition: service_healthy
@@ -62,14 +62,14 @@ services:
- 8080:3000
image: quay.io/mudler/localagi:master
environment:
- - LOCALAGENT_MODEL=arcee-agent
- - LOCALAGENT_LLM_API_URL=http://localai:8080
- - LOCALAGENT_LLM_API_KEY=sk-1234567890
- - LOCALAGENT_LOCALRAG_URL=http://localrecall:8080
- - LOCALAGENT_STATE_DIR=/pool
- - LOCALAGENT_TIMEOUT=5m
- - LOCALAGENT_ENABLE_CONVERSATIONS_LOGGING=false
+ - LOCALAGI_MODEL=arcee-agent
+ - LOCALAGI_LLM_API_URL=http://localai:8080
+ - LOCALAGI_LLM_API_KEY=sk-1234567890
+ - LOCALAGI_LOCALRAG_URL=http://localrecall:8080
+ - LOCALAGI_STATE_DIR=/pool
+ - LOCALAGI_TIMEOUT=5m
+ - LOCALAGI_ENABLE_CONVERSATIONS_LOGGING=false
extra_hosts:
- "host.docker.internal:host-gateway"
volumes:
- - ./volumes/localagent/:/pool
+ - ./volumes/localagi/:/pool
diff --git a/docker-compose.gpu.yaml b/docker-compose.gpu.yaml
index 382eb36..4c619e8 100644
--- a/docker-compose.gpu.yaml
+++ b/docker-compose.gpu.yaml
@@ -58,7 +58,7 @@ services:
image: busybox
command: ["sh", "-c", "until wget -q -O - http://localrecall:8080 > /dev/null 2>&1; do echo 'Waiting for localrecall...'; sleep 1; done; echo 'localrecall is up!'"]
- localagent:
+ localagi:
depends_on:
localai:
condition: service_healthy
@@ -71,16 +71,16 @@ services:
- 8080:3000
image: quay.io/mudler/localagi:master
environment:
- - LOCALAGENT_MODEL=mlabonne_gemma-3-27b-it-abliterated
- - LOCALAGENT_LLM_API_URL=http://localai:8080
- - LOCALAGENT_LLM_API_KEY=sk-1234567890
- - LOCALAGENT_LOCALRAG_URL=http://localrecall:8080
- - LOCALAGENT_STATE_DIR=/pool
- - LOCALAGENT_TIMEOUT=5m
- - LOCALAGENT_ENABLE_CONVERSATIONS_LOGGING=false
- - LOCALAGENT_MULTIMODAL_MODEL=minicpm-v-2_6
- - LOCALAGENT_IMAGE_MODEL=flux.1-dev
+ - LOCALAGI_MODEL=mlabonne_gemma-3-27b-it-abliterated
+ - LOCALAGI_LLM_API_URL=http://localai:8080
+ - LOCALAGI_LLM_API_KEY=sk-1234567890
+ - LOCALAGI_LOCALRAG_URL=http://localrecall:8080
+ - LOCALAGI_STATE_DIR=/pool
+ - LOCALAGI_TIMEOUT=5m
+ - LOCALAGI_ENABLE_CONVERSATIONS_LOGGING=false
+ - LOCALAGI_MULTIMODAL_MODEL=minicpm-v-2_6
+ - LOCALAGI_IMAGE_MODEL=flux.1-dev
extra_hosts:
- "host.docker.internal:host-gateway"
volumes:
- - ./volumes/localagent/:/pool
+ - ./volumes/localagi/:/pool
diff --git a/docker-compose.yaml b/docker-compose.yaml
index 771886a..29cc383 100644
--- a/docker-compose.yaml
+++ b/docker-compose.yaml
@@ -55,7 +55,7 @@ services:
image: busybox
command: ["sh", "-c", "until wget -q -O - http://localrecall:8080 > /dev/null 2>&1; do echo 'Waiting for localrecall...'; sleep 1; done; echo 'localrecall is up!'"]
- localagent:
+ localagi:
depends_on:
localai:
condition: service_healthy
@@ -68,14 +68,14 @@ services:
- 8080:3000
image: quay.io/mudler/localagi:master
environment:
- - LOCALAGENT_MODEL=arcee-agent
- - LOCALAGENT_LLM_API_URL=http://localai:8080
- - LOCALAGENT_LLM_API_KEY=sk-1234567890
- - LOCALAGENT_LOCALRAG_URL=http://localrecall:8080
- - LOCALAGENT_STATE_DIR=/pool
- - LOCALAGENT_TIMEOUT=5m
- - LOCALAGENT_ENABLE_CONVERSATIONS_LOGGING=false
+ - LOCALAGI_MODEL=arcee-agent
+ - LOCALAGI_LLM_API_URL=http://localai:8080
+ - LOCALAGI_LLM_API_KEY=sk-1234567890
+ - LOCALAGI_LOCALRAG_URL=http://localrecall:8080
+ - LOCALAGI_STATE_DIR=/pool
+ - LOCALAGI_TIMEOUT=5m
+ - LOCALAGI_ENABLE_CONVERSATIONS_LOGGING=false
extra_hosts:
- "host.docker.internal:host-gateway"
volumes:
- - ./volumes/localagent/:/pool
+ - ./volumes/localagi/:/pool
diff --git a/go.mod b/go.mod
index 806e39c..bed03fc 100644
--- a/go.mod
+++ b/go.mod
@@ -1,4 +1,4 @@
-module github.com/mudler/LocalAgent
+module github.com/mudler/LocalAGI
go 1.22.0
diff --git a/main.go b/main.go
index dcf59cf..ff53a56 100644
--- a/main.go
+++ b/main.go
@@ -6,22 +6,22 @@ import (
"path/filepath"
"strings"
- "github.com/mudler/LocalAgent/core/state"
- "github.com/mudler/LocalAgent/services"
- "github.com/mudler/LocalAgent/webui"
+ "github.com/mudler/LocalAGI/core/state"
+ "github.com/mudler/LocalAGI/services"
+ "github.com/mudler/LocalAGI/webui"
)
-var testModel = os.Getenv("LOCALAGENT_MODEL")
-var multimodalModel = os.Getenv("LOCALAGENT_MULTIMODAL_MODEL")
-var apiURL = os.Getenv("LOCALAGENT_LLM_API_URL")
-var apiKey = os.Getenv("LOCALAGENT_LLM_API_KEY")
-var timeout = os.Getenv("LOCALAGENT_TIMEOUT")
-var stateDir = os.Getenv("LOCALAGENT_STATE_DIR")
-var localRAG = os.Getenv("LOCALAGENT_LOCALRAG_URL")
-var withLogs = os.Getenv("LOCALAGENT_ENABLE_CONVERSATIONS_LOGGING") == "true"
-var apiKeysEnv = os.Getenv("LOCALAGENT_API_KEYS")
-var imageModel = os.Getenv("LOCALAGENT_IMAGE_MODEL")
-var conversationDuration = os.Getenv("LOCALAGENT_CONVERSATION_DURATION")
+var testModel = os.Getenv("LOCALAGI_MODEL")
+var multimodalModel = os.Getenv("LOCALAGI_MULTIMODAL_MODEL")
+var apiURL = os.Getenv("LOCALAGI_LLM_API_URL")
+var apiKey = os.Getenv("LOCALAGI_LLM_API_KEY")
+var timeout = os.Getenv("LOCALAGI_TIMEOUT")
+var stateDir = os.Getenv("LOCALAGI_STATE_DIR")
+var localRAG = os.Getenv("LOCALAGI_LOCALRAG_URL")
+var withLogs = os.Getenv("LOCALAGI_ENABLE_CONVERSATIONS_LOGGING") == "true"
+var apiKeysEnv = os.Getenv("LOCALAGI_API_KEYS")
+var imageModel = os.Getenv("LOCALAGI_IMAGE_MODEL")
+var conversationDuration = os.Getenv("LOCALAGI_CONVERSATION_DURATION")
func init() {
if testModel == "" {
diff --git a/pkg/client/agents.go b/pkg/client/agents.go
index 4e690c6..53df5b9 100644
--- a/pkg/client/agents.go
+++ b/pkg/client/agents.go
@@ -1,4 +1,4 @@
-package localagent
+package localagi
import (
"encoding/json"
diff --git a/pkg/client/chat.go b/pkg/client/chat.go
index 4240be4..a6e9d46 100644
--- a/pkg/client/chat.go
+++ b/pkg/client/chat.go
@@ -1,4 +1,4 @@
-package localagent
+package localagi
import (
"fmt"
diff --git a/pkg/client/client.go b/pkg/client/client.go
index 508f7fd..354f793 100644
--- a/pkg/client/client.go
+++ b/pkg/client/client.go
@@ -1,4 +1,4 @@
-package localagent
+package localagi
import (
"bytes"
@@ -9,14 +9,14 @@ import (
"time"
)
-// Client represents a client for the LocalAgent API
+// Client represents a client for the LocalAGI API
type Client struct {
BaseURL string
APIKey string
HTTPClient *http.Client
}
-// NewClient creates a new LocalAgent client
+// NewClient creates a new LocalAGI client
func NewClient(baseURL string, apiKey string, timeout time.Duration) *Client {
if timeout == 0 {
timeout = time.Second * 30
diff --git a/pkg/client/responses.go b/pkg/client/responses.go
index 32bb6d2..9e9aa9a 100644
--- a/pkg/client/responses.go
+++ b/pkg/client/responses.go
@@ -1,4 +1,4 @@
-package localagent
+package localagi
import (
"encoding/json"
diff --git a/pkg/llm/json.go b/pkg/llm/json.go
index 34f111a..3403322 100644
--- a/pkg/llm/json.go
+++ b/pkg/llm/json.go
@@ -5,7 +5,7 @@ import (
"encoding/json"
"fmt"
- "github.com/mudler/LocalAgent/pkg/xlog"
+ "github.com/mudler/LocalAGI/pkg/xlog"
"github.com/sashabaranov/go-openai"
"github.com/sashabaranov/go-openai/jsonschema"
)
diff --git a/pkg/localrag/client.go b/pkg/localrag/client.go
index af69aee..e34c7ff 100644
--- a/pkg/localrag/client.go
+++ b/pkg/localrag/client.go
@@ -15,8 +15,8 @@ import (
"path/filepath"
"time"
- "github.com/mudler/LocalAgent/core/agent"
- "github.com/mudler/LocalAgent/pkg/xlog"
+ "github.com/mudler/LocalAGI/core/agent"
+ "github.com/mudler/LocalAGI/pkg/xlog"
)
var _ agent.RAGDB = &WrappedClient{}
diff --git a/pkg/xstrings/split_test.go b/pkg/xstrings/split_test.go
index d0164b8..b55f630 100644
--- a/pkg/xstrings/split_test.go
+++ b/pkg/xstrings/split_test.go
@@ -1,7 +1,7 @@
package xstrings_test
import (
- xtrings "github.com/mudler/LocalAgent/pkg/xstrings"
+ xtrings "github.com/mudler/LocalAGI/pkg/xstrings"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
)
diff --git a/services/actions.go b/services/actions.go
index 5590911..f6587ba 100644
--- a/services/actions.go
+++ b/services/actions.go
@@ -5,13 +5,13 @@ import (
"encoding/json"
"fmt"
- "github.com/mudler/LocalAgent/core/action"
- "github.com/mudler/LocalAgent/core/state"
- "github.com/mudler/LocalAgent/core/types"
- "github.com/mudler/LocalAgent/pkg/config"
- "github.com/mudler/LocalAgent/pkg/xlog"
+ "github.com/mudler/LocalAGI/core/action"
+ "github.com/mudler/LocalAGI/core/state"
+ "github.com/mudler/LocalAGI/core/types"
+ "github.com/mudler/LocalAGI/pkg/config"
+ "github.com/mudler/LocalAGI/pkg/xlog"
- "github.com/mudler/LocalAgent/services/actions"
+ "github.com/mudler/LocalAGI/services/actions"
)
const (
diff --git a/services/actions/browse.go b/services/actions/browse.go
index 83ffcae..9c57073 100644
--- a/services/actions/browse.go
+++ b/services/actions/browse.go
@@ -6,7 +6,7 @@ import (
"io"
"net/http"
- "github.com/mudler/LocalAgent/core/types"
+ "github.com/mudler/LocalAGI/core/types"
"github.com/sashabaranov/go-openai/jsonschema"
"jaytaylor.com/html2text"
)
diff --git a/services/actions/callagents.go b/services/actions/callagents.go
index 97746d7..a37a019 100644
--- a/services/actions/callagents.go
+++ b/services/actions/callagents.go
@@ -4,8 +4,8 @@ import (
"context"
"fmt"
- "github.com/mudler/LocalAgent/core/state"
- "github.com/mudler/LocalAgent/core/types"
+ "github.com/mudler/LocalAGI/core/state"
+ "github.com/mudler/LocalAGI/core/types"
"github.com/sashabaranov/go-openai"
"github.com/sashabaranov/go-openai/jsonschema"
)
diff --git a/services/actions/counter.go b/services/actions/counter.go
index 86dee63..e12da96 100644
--- a/services/actions/counter.go
+++ b/services/actions/counter.go
@@ -5,7 +5,7 @@ import (
"fmt"
"sync"
- "github.com/mudler/LocalAgent/core/types"
+ "github.com/mudler/LocalAGI/core/types"
"github.com/sashabaranov/go-openai/jsonschema"
)
diff --git a/services/actions/genimage.go b/services/actions/genimage.go
index fe296f3..61a101d 100644
--- a/services/actions/genimage.go
+++ b/services/actions/genimage.go
@@ -4,8 +4,8 @@ import (
"context"
"fmt"
- "github.com/mudler/LocalAgent/core/types"
- "github.com/mudler/LocalAgent/pkg/config"
+ "github.com/mudler/LocalAGI/core/types"
+ "github.com/mudler/LocalAGI/pkg/config"
"github.com/sashabaranov/go-openai"
"github.com/sashabaranov/go-openai/jsonschema"
)
@@ -109,20 +109,20 @@ func GenImageConfigMeta() []config.Field {
HelpText: "OpenAI API key for image generation",
},
{
- Name: "apiURL",
- Label: "API URL",
- Type: config.FieldTypeText,
- Required: true,
+ Name: "apiURL",
+ Label: "API URL",
+ Type: config.FieldTypeText,
+ Required: true,
DefaultValue: "https://api.openai.com/v1",
- HelpText: "OpenAI API URL",
+ HelpText: "OpenAI API URL",
},
{
- Name: "model",
- Label: "Model",
- Type: config.FieldTypeText,
- Required: true,
+ Name: "model",
+ Label: "Model",
+ Type: config.FieldTypeText,
+ Required: true,
DefaultValue: "dall-e-3",
- HelpText: "Image generation model to use (e.g., dall-e-3)",
+ HelpText: "Image generation model to use (e.g., dall-e-3)",
},
}
}
diff --git a/services/actions/genimage_test.go b/services/actions/genimage_test.go
index 7e3f2cd..ddaa999 100644
--- a/services/actions/genimage_test.go
+++ b/services/actions/genimage_test.go
@@ -4,9 +4,9 @@ import (
"context"
"os"
- "github.com/mudler/LocalAgent/core/types"
+ "github.com/mudler/LocalAGI/core/types"
- . "github.com/mudler/LocalAgent/services/actions"
+ . "github.com/mudler/LocalAGI/services/actions"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
)
diff --git a/services/actions/githubissuecloser.go b/services/actions/githubissuecloser.go
index c3e1935..6a1ce08 100644
--- a/services/actions/githubissuecloser.go
+++ b/services/actions/githubissuecloser.go
@@ -5,8 +5,8 @@ import (
"fmt"
"github.com/google/go-github/v69/github"
- "github.com/mudler/LocalAgent/core/types"
- "github.com/mudler/LocalAgent/pkg/config"
+ "github.com/mudler/LocalAGI/core/types"
+ "github.com/mudler/LocalAGI/pkg/config"
"github.com/sashabaranov/go-openai/jsonschema"
)
diff --git a/services/actions/githubissuecomment.go b/services/actions/githubissuecomment.go
index 7296c73..4370b1b 100644
--- a/services/actions/githubissuecomment.go
+++ b/services/actions/githubissuecomment.go
@@ -5,8 +5,8 @@ import (
"fmt"
"github.com/google/go-github/v69/github"
- "github.com/mudler/LocalAgent/core/types"
- "github.com/mudler/LocalAgent/pkg/config"
+ "github.com/mudler/LocalAGI/core/types"
+ "github.com/mudler/LocalAGI/pkg/config"
"github.com/sashabaranov/go-openai/jsonschema"
)
diff --git a/services/actions/githubissuelabeler.go b/services/actions/githubissuelabeler.go
index cf73914..90faebd 100644
--- a/services/actions/githubissuelabeler.go
+++ b/services/actions/githubissuelabeler.go
@@ -6,9 +6,9 @@ import (
"strings"
"github.com/google/go-github/v69/github"
- "github.com/mudler/LocalAgent/core/types"
- "github.com/mudler/LocalAgent/pkg/config"
- "github.com/mudler/LocalAgent/pkg/xlog"
+ "github.com/mudler/LocalAGI/core/types"
+ "github.com/mudler/LocalAGI/pkg/config"
+ "github.com/mudler/LocalAGI/pkg/xlog"
"github.com/sashabaranov/go-openai/jsonschema"
)
@@ -147,10 +147,10 @@ func GithubIssueLabelerConfigMeta() []config.Field {
HelpText: "GitHub repository owner",
},
{
- Name: "availableLabels",
- Label: "Available Labels",
- Type: config.FieldTypeText,
- HelpText: "Comma-separated list of available labels",
+ Name: "availableLabels",
+ Label: "Available Labels",
+ Type: config.FieldTypeText,
+ HelpText: "Comma-separated list of available labels",
DefaultValue: "bug,enhancement",
},
{
diff --git a/services/actions/githubissueopener.go b/services/actions/githubissueopener.go
index dbbc061..5bf5e6f 100644
--- a/services/actions/githubissueopener.go
+++ b/services/actions/githubissueopener.go
@@ -5,8 +5,8 @@ import (
"fmt"
"github.com/google/go-github/v69/github"
- "github.com/mudler/LocalAgent/core/types"
- "github.com/mudler/LocalAgent/pkg/config"
+ "github.com/mudler/LocalAGI/core/types"
+ "github.com/mudler/LocalAGI/pkg/config"
"github.com/sashabaranov/go-openai/jsonschema"
)
diff --git a/services/actions/githubissuereader.go b/services/actions/githubissuereader.go
index df5cfac..4ef4041 100644
--- a/services/actions/githubissuereader.go
+++ b/services/actions/githubissuereader.go
@@ -5,8 +5,8 @@ import (
"fmt"
"github.com/google/go-github/v69/github"
- "github.com/mudler/LocalAgent/core/types"
- "github.com/mudler/LocalAgent/pkg/config"
+ "github.com/mudler/LocalAGI/core/types"
+ "github.com/mudler/LocalAGI/pkg/config"
"github.com/sashabaranov/go-openai/jsonschema"
)
diff --git a/services/actions/githubissuesearch.go b/services/actions/githubissuesearch.go
index bcf7bc4..f858ab7 100644
--- a/services/actions/githubissuesearch.go
+++ b/services/actions/githubissuesearch.go
@@ -5,9 +5,9 @@ import (
"fmt"
"github.com/google/go-github/v69/github"
- "github.com/mudler/LocalAgent/core/types"
- "github.com/mudler/LocalAgent/pkg/config"
- "github.com/mudler/LocalAgent/pkg/xlog"
+ "github.com/mudler/LocalAGI/core/types"
+ "github.com/mudler/LocalAGI/pkg/config"
+ "github.com/mudler/LocalAGI/pkg/xlog"
"github.com/sashabaranov/go-openai/jsonschema"
)
diff --git a/services/actions/githubrepositorycreateupdatecontent.go b/services/actions/githubrepositorycreateupdatecontent.go
index 67befa3..382d6fe 100644
--- a/services/actions/githubrepositorycreateupdatecontent.go
+++ b/services/actions/githubrepositorycreateupdatecontent.go
@@ -5,8 +5,8 @@ import (
"fmt"
"github.com/google/go-github/v69/github"
- "github.com/mudler/LocalAgent/core/types"
- "github.com/mudler/LocalAgent/pkg/config"
+ "github.com/mudler/LocalAGI/core/types"
+ "github.com/mudler/LocalAGI/pkg/config"
"github.com/sashabaranov/go-openai/jsonschema"
)
@@ -51,7 +51,7 @@ func (g *GithubRepositoryCreateOrUpdateContent) Run(ctx context.Context, params
}
if result.CommitMessage == "" {
- result.CommitMessage = "LocalAgent commit"
+ result.CommitMessage = "LocalAGI commit"
}
if g.repository != "" && g.owner != "" {
diff --git a/services/actions/githubrepositorygetcontent.go b/services/actions/githubrepositorygetcontent.go
index dd6e7c0..d4cb36f 100644
--- a/services/actions/githubrepositorygetcontent.go
+++ b/services/actions/githubrepositorygetcontent.go
@@ -5,8 +5,8 @@ import (
"fmt"
"github.com/google/go-github/v69/github"
- "github.com/mudler/LocalAgent/core/types"
- "github.com/mudler/LocalAgent/pkg/config"
+ "github.com/mudler/LocalAGI/core/types"
+ "github.com/mudler/LocalAGI/pkg/config"
"github.com/sashabaranov/go-openai/jsonschema"
)
diff --git a/services/actions/githubrepositoryreadme.go b/services/actions/githubrepositoryreadme.go
index 5d0f349..5d81f24 100644
--- a/services/actions/githubrepositoryreadme.go
+++ b/services/actions/githubrepositoryreadme.go
@@ -5,8 +5,8 @@ import (
"fmt"
"github.com/google/go-github/v69/github"
- "github.com/mudler/LocalAgent/core/types"
- "github.com/mudler/LocalAgent/pkg/config"
+ "github.com/mudler/LocalAGI/core/types"
+ "github.com/mudler/LocalAGI/pkg/config"
"github.com/sashabaranov/go-openai/jsonschema"
)
diff --git a/services/actions/scrape.go b/services/actions/scrape.go
index 3bd0e29..b0e9e5b 100644
--- a/services/actions/scrape.go
+++ b/services/actions/scrape.go
@@ -4,7 +4,7 @@ import (
"context"
"fmt"
- "github.com/mudler/LocalAgent/core/types"
+ "github.com/mudler/LocalAGI/core/types"
"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 ed5c4dc..48fa47b 100644
--- a/services/actions/search.go
+++ b/services/actions/search.go
@@ -6,8 +6,8 @@ import (
"log/slog"
"strings"
- "github.com/mudler/LocalAgent/core/types"
- "github.com/mudler/LocalAgent/pkg/config"
+ "github.com/mudler/LocalAGI/core/types"
+ "github.com/mudler/LocalAGI/pkg/config"
"github.com/sashabaranov/go-openai/jsonschema"
"github.com/tmc/langchaingo/tools/duckduckgo"
"mvdan.cc/xurls/v2"
@@ -45,7 +45,7 @@ func (a *SearchAction) Run(ctx context.Context, params types.ActionParams) (type
return types.ActionResult{}, err
}
- ddg, err := duckduckgo.New(a.results, "LocalAgent")
+ ddg, err := duckduckgo.New(a.results, "LocalAGI")
if err != nil {
fmt.Printf("error: %v", err)
diff --git a/services/actions/sendmail.go b/services/actions/sendmail.go
index c6a4785..1247015 100644
--- a/services/actions/sendmail.go
+++ b/services/actions/sendmail.go
@@ -5,8 +5,8 @@ import (
"fmt"
"net/smtp"
- "github.com/mudler/LocalAgent/core/types"
- "github.com/mudler/LocalAgent/pkg/config"
+ "github.com/mudler/LocalAGI/core/types"
+ "github.com/mudler/LocalAGI/pkg/config"
"github.com/sashabaranov/go-openai/jsonschema"
)
@@ -93,12 +93,12 @@ func SendMailConfigMeta() []config.Field {
HelpText: "SMTP server host (e.g., smtp.gmail.com)",
},
{
- Name: "smtpPort",
- Label: "SMTP Port",
- Type: config.FieldTypeText,
- Required: true,
+ Name: "smtpPort",
+ Label: "SMTP Port",
+ Type: config.FieldTypeText,
+ Required: true,
DefaultValue: "587",
- HelpText: "SMTP server port (e.g., 587)",
+ HelpText: "SMTP server port (e.g., 587)",
},
{
Name: "username",
diff --git a/services/actions/shell.go b/services/actions/shell.go
index a21636a..3b7d227 100644
--- a/services/actions/shell.go
+++ b/services/actions/shell.go
@@ -5,8 +5,8 @@ import (
"fmt"
"log"
- "github.com/mudler/LocalAgent/core/types"
- "github.com/mudler/LocalAgent/pkg/config"
+ "github.com/mudler/LocalAGI/core/types"
+ "github.com/mudler/LocalAGI/pkg/config"
"github.com/sashabaranov/go-openai/jsonschema"
"golang.org/x/crypto/ssh"
)
diff --git a/services/actions/twitter_post.go b/services/actions/twitter_post.go
index 1921ad0..eeae064 100644
--- a/services/actions/twitter_post.go
+++ b/services/actions/twitter_post.go
@@ -4,9 +4,9 @@ import (
"context"
"fmt"
- "github.com/mudler/LocalAgent/core/types"
- "github.com/mudler/LocalAgent/pkg/config"
- "github.com/mudler/LocalAgent/services/connectors/twitter"
+ "github.com/mudler/LocalAGI/core/types"
+ "github.com/mudler/LocalAGI/pkg/config"
+ "github.com/mudler/LocalAGI/services/connectors/twitter"
"github.com/sashabaranov/go-openai/jsonschema"
)
@@ -75,9 +75,9 @@ func TwitterPostConfigMeta() []config.Field {
HelpText: "Twitter API token for posting tweets",
},
{
- Name: "noCharacterLimit",
- Label: "No Character Limit",
- Type: config.FieldTypeCheckbox,
+ Name: "noCharacterLimit",
+ Label: "No Character Limit",
+ Type: config.FieldTypeCheckbox,
HelpText: "If checked, tweets longer than the character limit will be split into multiple tweets",
},
}
diff --git a/services/actions/wikipedia.go b/services/actions/wikipedia.go
index 81b21a1..3f6b683 100644
--- a/services/actions/wikipedia.go
+++ b/services/actions/wikipedia.go
@@ -4,7 +4,7 @@ import (
"context"
"fmt"
- "github.com/mudler/LocalAgent/core/types"
+ "github.com/mudler/LocalAGI/core/types"
"github.com/sashabaranov/go-openai/jsonschema"
"github.com/tmc/langchaingo/tools/wikipedia"
)
@@ -25,7 +25,7 @@ func (a *WikipediaAction) Run(ctx context.Context, params types.ActionParams) (t
return types.ActionResult{}, err
}
- wiki := wikipedia.New("LocalAgent")
+ wiki := wikipedia.New("LocalAGI")
res, err := wiki.Call(ctx, result.Query)
if err != nil {
fmt.Printf("error: %v", err)
diff --git a/services/connectors.go b/services/connectors.go
index 7ad9ed5..8998df5 100644
--- a/services/connectors.go
+++ b/services/connectors.go
@@ -3,11 +3,11 @@ package services
import (
"encoding/json"
- "github.com/mudler/LocalAgent/pkg/config"
- "github.com/mudler/LocalAgent/pkg/xlog"
- "github.com/mudler/LocalAgent/services/connectors"
+ "github.com/mudler/LocalAGI/pkg/config"
+ "github.com/mudler/LocalAGI/pkg/xlog"
+ "github.com/mudler/LocalAGI/services/connectors"
- "github.com/mudler/LocalAgent/core/state"
+ "github.com/mudler/LocalAGI/core/state"
)
const (
diff --git a/services/connectors/conversationstracker.go b/services/connectors/conversationstracker.go
index bf5343a..5e70e5a 100644
--- a/services/connectors/conversationstracker.go
+++ b/services/connectors/conversationstracker.go
@@ -5,7 +5,7 @@ import (
"sync"
"time"
- "github.com/mudler/LocalAgent/pkg/xlog"
+ "github.com/mudler/LocalAGI/pkg/xlog"
"github.com/sashabaranov/go-openai"
)
diff --git a/services/connectors/conversationstracker_test.go b/services/connectors/conversationstracker_test.go
index cb75e2e..091e3b5 100644
--- a/services/connectors/conversationstracker_test.go
+++ b/services/connectors/conversationstracker_test.go
@@ -3,7 +3,7 @@ package connectors_test
import (
"time"
- "github.com/mudler/LocalAgent/services/connectors"
+ "github.com/mudler/LocalAGI/services/connectors"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
"github.com/sashabaranov/go-openai"
diff --git a/services/connectors/discord.go b/services/connectors/discord.go
index 6d006d9..8b1c5ac 100644
--- a/services/connectors/discord.go
+++ b/services/connectors/discord.go
@@ -6,10 +6,10 @@ import (
"time"
"github.com/bwmarrin/discordgo"
- "github.com/mudler/LocalAgent/core/agent"
- "github.com/mudler/LocalAgent/core/types"
- "github.com/mudler/LocalAgent/pkg/config"
- "github.com/mudler/LocalAgent/pkg/xlog"
+ "github.com/mudler/LocalAGI/core/agent"
+ "github.com/mudler/LocalAGI/core/types"
+ "github.com/mudler/LocalAGI/pkg/config"
+ "github.com/mudler/LocalAGI/pkg/xlog"
"github.com/sashabaranov/go-openai"
)
diff --git a/services/connectors/githubissue.go b/services/connectors/githubissue.go
index 0b87854..ac673e8 100644
--- a/services/connectors/githubissue.go
+++ b/services/connectors/githubissue.go
@@ -6,10 +6,10 @@ import (
"time"
"github.com/google/go-github/v69/github"
- "github.com/mudler/LocalAgent/core/agent"
- "github.com/mudler/LocalAgent/core/types"
- "github.com/mudler/LocalAgent/pkg/config"
- "github.com/mudler/LocalAgent/pkg/xlog"
+ "github.com/mudler/LocalAGI/core/agent"
+ "github.com/mudler/LocalAGI/core/types"
+ "github.com/mudler/LocalAGI/pkg/config"
+ "github.com/mudler/LocalAGI/pkg/xlog"
"github.com/sashabaranov/go-openai"
)
diff --git a/services/connectors/githubpr.go b/services/connectors/githubpr.go
index 70ef408..7b41981 100644
--- a/services/connectors/githubpr.go
+++ b/services/connectors/githubpr.go
@@ -6,10 +6,10 @@ import (
"time"
"github.com/google/go-github/v69/github"
- "github.com/mudler/LocalAgent/core/agent"
- "github.com/mudler/LocalAgent/core/types"
- "github.com/mudler/LocalAgent/pkg/config"
- "github.com/mudler/LocalAgent/pkg/xlog"
+ "github.com/mudler/LocalAGI/core/agent"
+ "github.com/mudler/LocalAGI/core/types"
+ "github.com/mudler/LocalAGI/pkg/config"
+ "github.com/mudler/LocalAGI/pkg/xlog"
"github.com/sashabaranov/go-openai"
)
diff --git a/services/connectors/irc.go b/services/connectors/irc.go
index 6221d39..60d2da6 100644
--- a/services/connectors/irc.go
+++ b/services/connectors/irc.go
@@ -5,11 +5,11 @@ import (
"strings"
"time"
- "github.com/mudler/LocalAgent/core/agent"
- "github.com/mudler/LocalAgent/core/types"
- "github.com/mudler/LocalAgent/pkg/config"
- "github.com/mudler/LocalAgent/pkg/xlog"
- "github.com/mudler/LocalAgent/services/actions"
+ "github.com/mudler/LocalAGI/core/agent"
+ "github.com/mudler/LocalAGI/core/types"
+ "github.com/mudler/LocalAGI/pkg/config"
+ "github.com/mudler/LocalAGI/pkg/xlog"
+ "github.com/mudler/LocalAGI/services/actions"
"github.com/sashabaranov/go-openai"
irc "github.com/thoj/go-ircevent"
)
diff --git a/services/connectors/slack.go b/services/connectors/slack.go
index 56afecd..68070ca 100644
--- a/services/connectors/slack.go
+++ b/services/connectors/slack.go
@@ -10,14 +10,14 @@ import (
"sync"
"time"
- "github.com/mudler/LocalAgent/pkg/config"
- "github.com/mudler/LocalAgent/pkg/xlog"
- "github.com/mudler/LocalAgent/pkg/xstrings"
- "github.com/mudler/LocalAgent/services/actions"
+ "github.com/mudler/LocalAGI/pkg/config"
+ "github.com/mudler/LocalAGI/pkg/xlog"
+ "github.com/mudler/LocalAGI/pkg/xstrings"
+ "github.com/mudler/LocalAGI/services/actions"
"github.com/sashabaranov/go-openai"
- "github.com/mudler/LocalAgent/core/agent"
- "github.com/mudler/LocalAgent/core/types"
+ "github.com/mudler/LocalAGI/core/agent"
+ "github.com/mudler/LocalAGI/core/types"
"github.com/slack-go/slack/socketmode"
diff --git a/services/connectors/telegram.go b/services/connectors/telegram.go
index 2ff9806..eb8388c 100644
--- a/services/connectors/telegram.go
+++ b/services/connectors/telegram.go
@@ -12,12 +12,12 @@ import (
"github.com/go-telegram/bot"
"github.com/go-telegram/bot/models"
- "github.com/mudler/LocalAgent/core/agent"
- "github.com/mudler/LocalAgent/core/types"
- "github.com/mudler/LocalAgent/pkg/config"
- "github.com/mudler/LocalAgent/pkg/xlog"
- "github.com/mudler/LocalAgent/pkg/xstrings"
- "github.com/mudler/LocalAgent/services/actions"
+ "github.com/mudler/LocalAGI/core/agent"
+ "github.com/mudler/LocalAGI/core/types"
+ "github.com/mudler/LocalAGI/pkg/config"
+ "github.com/mudler/LocalAGI/pkg/xlog"
+ "github.com/mudler/LocalAGI/pkg/xstrings"
+ "github.com/mudler/LocalAGI/services/actions"
"github.com/sashabaranov/go-openai"
)
@@ -215,9 +215,9 @@ func TelegramConfigMeta() []config.Field {
Required: true,
},
{
- Name: "admins",
- Label: "Admins",
- Type: config.FieldTypeText,
+ Name: "admins",
+ Label: "Admins",
+ Type: config.FieldTypeText,
HelpText: "Comma-separated list of Telegram usernames that are allowed to interact with the bot",
},
{
diff --git a/services/connectors/twitter.go b/services/connectors/twitter.go
index 6f3c595..884830a 100644
--- a/services/connectors/twitter.go
+++ b/services/connectors/twitter.go
@@ -6,11 +6,11 @@ import (
"os"
"os/signal"
- "github.com/mudler/LocalAgent/core/agent"
- "github.com/mudler/LocalAgent/core/types"
- "github.com/mudler/LocalAgent/pkg/config"
- "github.com/mudler/LocalAgent/pkg/xlog"
- "github.com/mudler/LocalAgent/services/connectors/twitter"
+ "github.com/mudler/LocalAGI/core/agent"
+ "github.com/mudler/LocalAGI/core/types"
+ "github.com/mudler/LocalAGI/pkg/config"
+ "github.com/mudler/LocalAGI/pkg/xlog"
+ "github.com/mudler/LocalAGI/services/connectors/twitter"
"github.com/sashabaranov/go-openai"
)
diff --git a/services/prompts.go b/services/prompts.go
index 6365d7b..f20d3f5 100644
--- a/services/prompts.go
+++ b/services/prompts.go
@@ -3,12 +3,12 @@ package services
import (
"encoding/json"
- "github.com/mudler/LocalAgent/pkg/config"
- "github.com/mudler/LocalAgent/pkg/xlog"
- "github.com/mudler/LocalAgent/services/prompts"
+ "github.com/mudler/LocalAGI/pkg/config"
+ "github.com/mudler/LocalAGI/pkg/xlog"
+ "github.com/mudler/LocalAGI/services/prompts"
- "github.com/mudler/LocalAgent/core/agent"
- "github.com/mudler/LocalAgent/core/state"
+ "github.com/mudler/LocalAGI/core/agent"
+ "github.com/mudler/LocalAGI/core/state"
)
const (
@@ -21,7 +21,7 @@ var AvailableBlockPrompts = []string{
func DynamicPromptsConfigMeta() []config.FieldGroup {
return []config.FieldGroup{
- prompts.NewDynamicPromptConfigMeta(),
+ prompts.NewDynamicPromptConfigMeta(),
}
}
diff --git a/services/prompts/custom.go b/services/prompts/custom.go
index 85bea61..1251330 100644
--- a/services/prompts/custom.go
+++ b/services/prompts/custom.go
@@ -4,9 +4,9 @@ import (
"fmt"
"strings"
- "github.com/mudler/LocalAgent/core/agent"
- "github.com/mudler/LocalAgent/pkg/config"
- "github.com/mudler/LocalAgent/pkg/xlog"
+ "github.com/mudler/LocalAGI/core/agent"
+ "github.com/mudler/LocalAGI/pkg/config"
+ "github.com/mudler/LocalAGI/pkg/xlog"
"github.com/traefik/yaegi/interp"
"github.com/traefik/yaegi/stdlib"
)
@@ -50,33 +50,33 @@ func (a *DynamicPrompt) callInit() error {
}
func NewDynamicPromptConfigMeta() config.FieldGroup {
- return config.FieldGroup {
- Name: "custom",
- Label: "Custom Prompt",
- Fields: []config.Field{
- {
- Name: "name",
- Label: "Name",
- Type: config.FieldTypeText,
- Required: true,
- HelpText: "A unique name for your custom prompt",
- Placeholder: "Enter a unique name",
- },
- {
- Name: "code",
- Label: "Go Code",
- Type: config.FieldTypeTextarea,
- Required: true,
- HelpText: "Enter code that implements the Render and Role functions here",
- Placeholder: "Write your Go code here",
- },
- {
- Name: "unsafe",
- Label: "Unsafe Code",
- Type: config.FieldTypeCheckbox,
- Required: false,
- HelpText: "Enable if the code needs to use unsafe Go features",
- },
+ return config.FieldGroup{
+ Name: "custom",
+ Label: "Custom Prompt",
+ Fields: []config.Field{
+ {
+ Name: "name",
+ Label: "Name",
+ Type: config.FieldTypeText,
+ Required: true,
+ HelpText: "A unique name for your custom prompt",
+ Placeholder: "Enter a unique name",
+ },
+ {
+ Name: "code",
+ Label: "Go Code",
+ Type: config.FieldTypeTextarea,
+ Required: true,
+ HelpText: "Enter code that implements the Render and Role functions here",
+ Placeholder: "Write your Go code here",
+ },
+ {
+ Name: "unsafe",
+ Label: "Unsafe Code",
+ Type: config.FieldTypeCheckbox,
+ Required: false,
+ HelpText: "Enable if the code needs to use unsafe Go features",
+ },
},
}
}
diff --git a/slack.yaml b/slack.yaml
index 3304463..f7bcf8f 100644
--- a/slack.yaml
+++ b/slack.yaml
@@ -6,12 +6,12 @@
## When configuring the connector, supply the tokens with:
## { "botToken": "OAuth Tokens for Your Workspace", "appToken": "App-Level Tokens" }
display_information:
- name: LocalAgent
- description: LocalAgent bot
+ name: LocalAGI
+ description: LocalAGI bot
background_color: "#0040ff"
features:
bot_user:
- display_name: LocalAgent
+ display_name: LocalAGI
always_online: true
oauth_config:
scopes:
diff --git a/tests/e2e/e2e_suite_test.go b/tests/e2e/e2e_suite_test.go
index 16b9916..1675255 100644
--- a/tests/e2e/e2e_suite_test.go
+++ b/tests/e2e/e2e_suite_test.go
@@ -13,9 +13,9 @@ func TestE2E(t *testing.T) {
RunSpecs(t, "E2E test suite")
}
-var testModel = os.Getenv("LOCALAGENT_MODEL")
+var testModel = os.Getenv("LOCALAGI_MODEL")
var apiURL = os.Getenv("LOCALAI_API_URL")
-var localagentURL = os.Getenv("LOCALAGENT_API_URL")
+var localagiURL = os.Getenv("LOCALAGI_API_URL")
func init() {
if testModel == "" {
diff --git a/tests/e2e/e2e_test.go b/tests/e2e/e2e_test.go
index a3518d4..dcf6298 100644
--- a/tests/e2e/e2e_test.go
+++ b/tests/e2e/e2e_test.go
@@ -3,7 +3,7 @@ package e2e_test
import (
"time"
- localagent "github.com/mudler/LocalAgent/pkg/client"
+ localagi "github.com/mudler/LocalAGI/pkg/client"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
@@ -12,9 +12,9 @@ import (
var _ = Describe("Agent test", func() {
Context("Creates an agent and it answers", func() {
It("create agent", func() {
- client := localagent.NewClient(localagentURL, "", 5*time.Minute)
+ client := localagi.NewClient(localagiURL, "", 5*time.Minute)
- err := client.CreateAgent(&localagent.AgentConfig{
+ err := client.CreateAgent(&localagi.AgentConfig{
Name: "testagent",
})
Expect(err).ToNot(HaveOccurred())
diff --git a/webui/app.go b/webui/app.go
index 75cf677..4f50e97 100644
--- a/webui/app.go
+++ b/webui/app.go
@@ -11,17 +11,17 @@ import (
"time"
"github.com/google/uuid"
- coreTypes "github.com/mudler/LocalAgent/core/types"
- "github.com/mudler/LocalAgent/pkg/llm"
- "github.com/mudler/LocalAgent/pkg/xlog"
- "github.com/mudler/LocalAgent/services"
- "github.com/mudler/LocalAgent/services/connectors"
- "github.com/mudler/LocalAgent/webui/types"
+ coreTypes "github.com/mudler/LocalAGI/core/types"
+ "github.com/mudler/LocalAGI/pkg/llm"
+ "github.com/mudler/LocalAGI/pkg/xlog"
+ "github.com/mudler/LocalAGI/services"
+ "github.com/mudler/LocalAGI/services/connectors"
+ "github.com/mudler/LocalAGI/webui/types"
"github.com/sashabaranov/go-openai"
"github.com/sashabaranov/go-openai/jsonschema"
- "github.com/mudler/LocalAgent/core/sse"
- "github.com/mudler/LocalAgent/core/state"
+ "github.com/mudler/LocalAGI/core/sse"
+ "github.com/mudler/LocalAGI/core/state"
"github.com/donseba/go-htmx"
fiber "github.com/gofiber/fiber/v2"
diff --git a/webui/old/public/js/connector-templates.js b/webui/old/public/js/connector-templates.js
index f093989..3173e71 100644
--- a/webui/old/public/js/connector-templates.js
+++ b/webui/old/public/js/connector-templates.js
@@ -1,7 +1,7 @@
/**
* Connector Templates
*
- * This file contains templates for all connector types supported by LocalAgent.
+ * This file contains templates for all connector types supported by LocalAGI.
* Each template is a function that returns an HTML string for the connector's form.
*
* Note: We don't need to escape HTML in the value attributes because browsers
diff --git a/webui/old/views/actions.html b/webui/old/views/actions.html
index a87acc7..673207a 100644
--- a/webui/old/views/actions.html
+++ b/webui/old/views/actions.html
@@ -62,7 +62,7 @@
diff --git a/webui/old/views/agents.html b/webui/old/views/agents.html
index 9eeb66d..81e6bac 100644
--- a/webui/old/views/agents.html
+++ b/webui/old/views/agents.html
@@ -157,7 +157,7 @@
diff --git a/webui/old/views/index.html b/webui/old/views/index.html
index f80ca06..8992993 100644
--- a/webui/old/views/index.html
+++ b/webui/old/views/index.html
@@ -140,7 +140,7 @@
-
+