mirror of
https://github.com/YspCoder/clawgo.git
synced 2026-05-17 11:47:28 +08:00
33 lines
850 B
Go
33 lines
850 B
Go
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"
|
|
"github.com/YspCoder/clawgo/pkg/session"
|
|
)
|
|
|
|
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
|
|
SessionManager *session.SessionManager
|
|
SessionList SessionListFunc
|
|
SessionHistory SessionHistoryFunc
|
|
}
|
|
|
|
type BootstrapResult struct {
|
|
Registry *ToolRegistry
|
|
ProcessManager *ProcessManager
|
|
SubagentManager *SubagentManager
|
|
SubagentRouter *SubagentRouter
|
|
}
|