This commit is contained in:
Ettore Di Giacinto
2025-04-08 22:18:32 +02:00
parent 894dde9256
commit e7111c6554
97 changed files with 329 additions and 329 deletions

View File

@@ -1,4 +1,4 @@
package localagent
package localagi
import (
"encoding/json"

View File

@@ -1,4 +1,4 @@
package localagent
package localagi
import (
"fmt"

View File

@@ -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

View File

@@ -1,4 +1,4 @@
package localagent
package localagi
import (
"encoding/json"

View File

@@ -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"
)

View File

@@ -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{}

View File

@@ -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"
)