mirror of
https://github.com/YspCoder/clawgo.git
synced 2026-05-17 21:17:28 +08:00
parallel optimization groundwork
This commit is contained in:
30
pkg/tools/bootstrap_options.go
Normal file
30
pkg/tools/bootstrap_options.go
Normal file
@@ -0,0 +1,30 @@
|
||||
package tools
|
||||
|
||||
import (
|
||||
"github.com/YspCoder/clawgo/pkg/bus"
|
||||
"github.com/YspCoder/clawgo/pkg/config"
|
||||
"github.com/YspCoder/clawgo/pkg/cron"
|
||||
"github.com/YspCoder/clawgo/pkg/providers"
|
||||
)
|
||||
|
||||
type SessionListFunc func(limit int) []SessionInfo
|
||||
|
||||
type SessionHistoryFunc func(key string, limit int) []providers.Message
|
||||
|
||||
type BootstrapOptions struct {
|
||||
Config *config.Config
|
||||
Workspace string
|
||||
MessageBus *bus.MessageBus
|
||||
CronService *cron.CronService
|
||||
Provider providers.LLMProvider
|
||||
ProcessManager *ProcessManager
|
||||
SessionList SessionListFunc
|
||||
SessionHistory SessionHistoryFunc
|
||||
}
|
||||
|
||||
type BootstrapResult struct {
|
||||
Registry *ToolRegistry
|
||||
ProcessManager *ProcessManager
|
||||
SubagentManager *SubagentManager
|
||||
SubagentRouter *SubagentRouter
|
||||
}
|
||||
Reference in New Issue
Block a user