feat: 实现 LLM 文言文摘要生成,优化 Session 创建逻辑
Some checks failed
Release / build (push) Failing after 3h11m18s

This commit is contained in:
2026-04-27 08:58:08 +08:00
parent f41aa8b453
commit 124b0baa26
7 changed files with 126 additions and 24 deletions

View File

@@ -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{