picoclaw/pkg/evolution/case_writer.go

21 lines
348 B
Go

package evolution
import (
"context"
)
type CaseWriter struct {
paths Paths
store *Store
}
func NewCaseWriter(paths Paths) *CaseWriter {
return &CaseWriter{
paths: paths,
store: NewStore(paths),
}
}
func (w *CaseWriter) AppendCase(ctx context.Context, record LearningRecord) error {
return w.store.AppendLearningRecord(ctx, record)
}