mirror of
https://github.com/sipeed/picoclaw.git
synced 2026-06-12 18:08:54 +00:00
b3a7b7ad64
* feat: add agent self-evolution * fix ci * delete unused doc * fix lint * fix evolution review issues
22 lines
344 B
Go
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)
|
|
}
|