Documentation
¶
Index ¶
- type Config
- type Store
- func (s *Store) Activate(ctx context.Context, command memorykit.VersionedCommand) (memorykit.Memory, error)
- func (s *Store) ClaimExtraction(ctx context.Context, workerID string, leaseDuration time.Duration, ...) (memorykit.ExtractionJob, error)
- func (s *Store) Close() error
- func (s *Store) CompleteExtraction(ctx context.Context, id, workerID string, expectedAttempt int, now time.Time) error
- func (s *Store) Correct(ctx context.Context, request memorykit.CorrectRequest) (memorykit.Memory, error)
- func (s *Store) Create(ctx context.Context, request memorykit.CreateRequest) (memorykit.Memory, error)
- func (s *Store) Dismiss(ctx context.Context, command memorykit.VersionedCommand) (memorykit.Memory, error)
- func (s *Store) EnqueueExtraction(ctx context.Context, job memorykit.ExtractionJob) error
- func (s *Store) Erase(ctx context.Context, command memorykit.VersionedCommand) error
- func (s *Store) FailExtraction(ctx context.Context, id, workerID string, expectedAttempt int, ...) error
- func (s *Store) Forget(ctx context.Context, command memorykit.VersionedCommand) (memorykit.Memory, error)
- func (s *Store) Get(ctx context.Context, scope memorykit.Scope, id string) (memorykit.Memory, error)
- func (s *Store) List(ctx context.Context, query memorykit.ListQuery) ([]memorykit.Memory, error)
- func (s *Store) PendingEmbeddings(ctx context.Context, query memorykit.PendingEmbeddingQuery) ([]memorykit.EmbeddingInput, error)
- func (s *Store) PutEmbedding(ctx context.Context, request memorykit.PutEmbeddingRequest) error
- func (s *Store) Revisions(ctx context.Context, query memorykit.RevisionQuery) ([]memorykit.Revision, error)
- func (s *Store) SearchCandidates(ctx context.Context, query memorykit.CandidateQuery) (memorykit.CandidateSet, error)
- func (s *Store) Sources(ctx context.Context, scope memorykit.Scope, id string) ([]memorykit.Source, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
Config contains the validation and embedding contract shared by every Store operation.
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store owns PostgreSQL persistence. ownsDB distinguishes Open from caller-controlled OpenDB.
func (*Store) ClaimExtraction ¶
func (*Store) Close ¶
Close closes only pools created by Open. Caller-supplied OpenDB pools remain untouched.
func (*Store) CompleteExtraction ¶
func (*Store) EnqueueExtraction ¶
func (*Store) FailExtraction ¶
func (*Store) PendingEmbeddings ¶
func (s *Store) PendingEmbeddings(ctx context.Context, query memorykit.PendingEmbeddingQuery) ([]memorykit.EmbeddingInput, error)
func (*Store) PutEmbedding ¶
func (*Store) SearchCandidates ¶
func (s *Store) SearchCandidates(ctx context.Context, query memorykit.CandidateQuery) (memorykit.CandidateSet, error)
Click to show internal directories.
Click to hide internal directories.