feat: 实现 LLM 文言文摘要生成,优化 Session 创建逻辑
Some checks failed
Release / build (push) Failing after 3h11m18s
Some checks failed
Release / build (push) Failing after 3h11m18s
This commit is contained in:
@@ -9,6 +9,7 @@ import (
|
||||
|
||||
"github.com/google/uuid"
|
||||
"github.com/hxclaw/hxclaw/cmd/hxclaw/internal"
|
||||
"github.com/sipeed/picoclaw/pkg/agent"
|
||||
|
||||
_ "github.com/tursodatabase/libsql-client-go/libsql"
|
||||
)
|
||||
@@ -18,8 +19,9 @@ type DB struct {
|
||||
}
|
||||
|
||||
var (
|
||||
db *DB
|
||||
cfg *DBConfig
|
||||
db *DB
|
||||
cfg *DBConfig
|
||||
summaryAgent *agent.AgentLoop
|
||||
)
|
||||
|
||||
type DBConfig struct {
|
||||
@@ -43,7 +45,9 @@ func GetDefaultDBPath() string {
|
||||
return getDefaultDBPath()
|
||||
}
|
||||
|
||||
func Init(opts ...DBSOption) error {
|
||||
func Init(agentLoop *agent.AgentLoop, opts ...DBSOption) error {
|
||||
summaryAgent = agentLoop
|
||||
|
||||
memoryCfg := internal.GetProjectConfig().Memory
|
||||
|
||||
cfg = &DBConfig{
|
||||
|
||||
Reference in New Issue
Block a user