style: fix goimports formatting across codebase
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
6fae0e2ca7
commit
c267db36a6
9 changed files with 17 additions and 17 deletions
|
|
@ -20,7 +20,6 @@ import (
|
|||
"strings"
|
||||
"time"
|
||||
|
||||
"github.com/chzyer/readline"
|
||||
"github.com/KarakuriAgent/clawdroid/pkg/agent"
|
||||
"github.com/KarakuriAgent/clawdroid/pkg/bus"
|
||||
"github.com/KarakuriAgent/clawdroid/pkg/channels"
|
||||
|
|
@ -31,6 +30,7 @@ import (
|
|||
"github.com/KarakuriAgent/clawdroid/pkg/providers"
|
||||
"github.com/KarakuriAgent/clawdroid/pkg/skills"
|
||||
"github.com/KarakuriAgent/clawdroid/pkg/tools"
|
||||
"github.com/chzyer/readline"
|
||||
)
|
||||
|
||||
//go:generate cp -r ../../workspace .
|
||||
|
|
|
|||
|
|
@ -38,7 +38,7 @@ type AgentLoop struct {
|
|||
model string
|
||||
maxTokens int // Maximum tokens for API response
|
||||
temperature float64 // Temperature for LLM (0 = not sent)
|
||||
contextWindow int // Maximum context window size in tokens (for summarization)
|
||||
contextWindow int // Maximum context window size in tokens (for summarization)
|
||||
maxIterations int
|
||||
sessions *session.SessionManager
|
||||
state *state.Manager
|
||||
|
|
|
|||
|
|
@ -7,11 +7,11 @@ import (
|
|||
"strings"
|
||||
"time"
|
||||
|
||||
"github.com/bwmarrin/discordgo"
|
||||
"github.com/KarakuriAgent/clawdroid/pkg/bus"
|
||||
"github.com/KarakuriAgent/clawdroid/pkg/config"
|
||||
"github.com/KarakuriAgent/clawdroid/pkg/logger"
|
||||
"github.com/KarakuriAgent/clawdroid/pkg/utils"
|
||||
"github.com/bwmarrin/discordgo"
|
||||
)
|
||||
|
||||
const (
|
||||
|
|
@ -20,9 +20,9 @@ const (
|
|||
|
||||
type DiscordChannel struct {
|
||||
*BaseChannel
|
||||
session *discordgo.Session
|
||||
config config.DiscordConfig
|
||||
ctx context.Context
|
||||
session *discordgo.Session
|
||||
config config.DiscordConfig
|
||||
ctx context.Context
|
||||
}
|
||||
|
||||
func NewDiscordChannel(cfg config.DiscordConfig, bus *bus.MessageBus) (*DiscordChannel, error) {
|
||||
|
|
@ -36,8 +36,8 @@ func NewDiscordChannel(cfg config.DiscordConfig, bus *bus.MessageBus) (*DiscordC
|
|||
return &DiscordChannel{
|
||||
BaseChannel: base,
|
||||
session: session,
|
||||
config: cfg,
|
||||
ctx: context.Background(),
|
||||
config: cfg,
|
||||
ctx: context.Background(),
|
||||
}, nil
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -22,8 +22,8 @@ type SlackChannel struct {
|
|||
config config.SlackConfig
|
||||
api *slack.Client
|
||||
socketClient *socketmode.Client
|
||||
botUserID string
|
||||
ctx context.Context
|
||||
botUserID string
|
||||
ctx context.Context
|
||||
cancel context.CancelFunc
|
||||
pendingAcks sync.Map
|
||||
}
|
||||
|
|
|
|||
|
|
@ -5,8 +5,8 @@ import (
|
|||
"fmt"
|
||||
"strings"
|
||||
|
||||
"github.com/mymmrac/telego"
|
||||
"github.com/KarakuriAgent/clawdroid/pkg/config"
|
||||
"github.com/mymmrac/telego"
|
||||
)
|
||||
|
||||
type TelegramCommander interface {
|
||||
|
|
|
|||
|
|
@ -7,13 +7,13 @@ import (
|
|||
"net/http"
|
||||
"sync"
|
||||
|
||||
"github.com/google/uuid"
|
||||
"github.com/gorilla/websocket"
|
||||
"github.com/KarakuriAgent/clawdroid/pkg/broadcast"
|
||||
"github.com/KarakuriAgent/clawdroid/pkg/bus"
|
||||
"github.com/KarakuriAgent/clawdroid/pkg/config"
|
||||
"github.com/KarakuriAgent/clawdroid/pkg/logger"
|
||||
"github.com/KarakuriAgent/clawdroid/pkg/tools"
|
||||
"github.com/google/uuid"
|
||||
"github.com/gorilla/websocket"
|
||||
)
|
||||
|
||||
// wsIncoming is the JSON message sent from APK to clawdroid.
|
||||
|
|
|
|||
|
|
@ -11,9 +11,9 @@ import (
|
|||
"sync"
|
||||
"time"
|
||||
|
||||
sdkmcp "github.com/modelcontextprotocol/go-sdk/mcp"
|
||||
"github.com/KarakuriAgent/clawdroid/pkg/config"
|
||||
"github.com/KarakuriAgent/clawdroid/pkg/logger"
|
||||
sdkmcp "github.com/modelcontextprotocol/go-sdk/mcp"
|
||||
)
|
||||
|
||||
// ServerInstance manages a connected MCP server session.
|
||||
|
|
|
|||
|
|
@ -131,7 +131,7 @@ After completing the task, provide a clear summary of what was done.`
|
|||
Tools: tools,
|
||||
MaxIterations: maxIter,
|
||||
LLMOptions: map[string]any{
|
||||
"max_tokens": 4096,
|
||||
"max_tokens": 4096,
|
||||
},
|
||||
}, messages, task.OriginChannel, task.OriginChatID)
|
||||
|
||||
|
|
@ -288,7 +288,7 @@ func (t *SubagentTool) Execute(ctx context.Context, args map[string]interface{})
|
|||
Tools: tools,
|
||||
MaxIterations: maxIter,
|
||||
LLMOptions: map[string]any{
|
||||
"max_tokens": 4096,
|
||||
"max_tokens": 4096,
|
||||
},
|
||||
}, messages, t.originChannel, t.originChatID)
|
||||
|
||||
|
|
|
|||
|
|
@ -9,8 +9,8 @@ import (
|
|||
"strings"
|
||||
"time"
|
||||
|
||||
"github.com/google/uuid"
|
||||
"github.com/KarakuriAgent/clawdroid/pkg/logger"
|
||||
"github.com/google/uuid"
|
||||
)
|
||||
|
||||
const maxImageFileSize = 50 * 1024 * 1024 // 50MB
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue