Documentation
¶
Index ¶
- func Analyze(ctx context.Context, model agentcore.ChatModel, systemPrompt string, ...) (domain.RevisionAnalysis, error)
- func ChangedChapters(changes []Change) []int
- func MigrateLegacyBaseline(st *store.Store) error
- func ValidateRecords(records []domain.ChapterRecord) error
- type Change
- type Projector
- type Result
- type Service
- type StyleIndex
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Analyze ¶
func Analyze(ctx context.Context, model agentcore.ChatModel, systemPrompt string, change Change, previous domain.ChapterRecord, downstream []domain.ChapterSummary) (domain.RevisionAnalysis, error)
func ChangedChapters ¶
func MigrateLegacyBaseline ¶
MigrateLegacyBaseline 从旧版业务投影逆向生成章节记录。会话日志不是作品事实, 因此不参与迁移。保存前正向投影一次与原状态比对,有出入只记日志:升级不改磁盘上的 世界状态,也不因此拦住用户。
func ValidateRecords ¶ added in v0.7.7
func ValidateRecords(records []domain.ChapterRecord) error
ValidateRecords 校验完整章节记录集能否被确定性重放,不写入任何投影。
Types ¶
type Change ¶
type Projector ¶
type Projector struct {
// contains filtered or unexported fields
}
Projector 从章节记录重建所有章节级派生状态。
func NewProjector ¶
type StyleIndex ¶
Click to show internal directories.
Click to hide internal directories.