工具路由还没实现
This commit is contained in:
+10
-3
@@ -18,11 +18,17 @@ import (
|
||||
"gorm.io/gorm"
|
||||
)
|
||||
|
||||
// SystemPromptStore is the interface for getting the system prompt
|
||||
type SystemPromptStore interface {
|
||||
GetLLMPrimaryConfigSystemPrompt() (string, error)
|
||||
}
|
||||
|
||||
// Config holds the AI service configuration
|
||||
type Config struct {
|
||||
LLMProviders []llm.ProviderConfig
|
||||
DataDir string
|
||||
Enabled bool
|
||||
LLMProviders []llm.ProviderConfig
|
||||
DataDir string
|
||||
Enabled bool
|
||||
SystemPromptStore SystemPromptStore
|
||||
}
|
||||
|
||||
// Service manages all AI-related components
|
||||
@@ -91,6 +97,7 @@ func NewService(cfg Config, db *gorm.DB, botSender autoreply.BotSender) (*Servic
|
||||
convStore,
|
||||
msgQueue,
|
||||
botSender,
|
||||
cfg.SystemPromptStore,
|
||||
)
|
||||
|
||||
return &Service{
|
||||
|
||||
Reference in New Issue
Block a user