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 为 chapter_records 出现前创建的作品补齐接纳基线。 成功提交会话保存完整章节事实,草稿保存当时的正文;只使用这两份历史事实, 不会把可能已被用户修改的 chapters/*.md 静默当成已接纳版本。
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.