Files
picoclaw/pkg/evolution/case_writer.go
T
lxowalle b3a7b7ad64 feat: agent self evolution (#2847)
* feat: add agent self-evolution

* fix ci

* delete unused doc

* fix lint

* fix evolution review issues
2026-05-11 16:13:27 +08:00

22 lines
344 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.AppendTaskRecord(ctx, record)
}