Versions in this module Expand all Collapse all v1 v1.4.0 Oct 20, 2026 Changes in this version + type DevEmbedder struct + func (DevEmbedder) Embed(_ context.Context, content string) ([]float32, error) + type Embedder interface + Embed func(context.Context, string) ([]float32, error) + type Gateway struct + func NewGateway(embedder Embedder, memories store.MemoryStore) *Gateway + func (g *Gateway) Get(ctx context.Context, tenantID string, id uuid.UUID) (store.MemoryRecord, error) + func (g *Gateway) Put(ctx context.Context, in PutInput) (store.MemoryRecord, bool, error) + func (g *Gateway) Search(ctx context.Context, in SearchInput) ([]store.MemoryRecord, error) + func (g *Gateway) Tombstone(ctx context.Context, tenantID string, id uuid.UUID, expectedVersion int64) (store.MemoryRecord, error) + type HTTPEmbedder struct + func NewHTTPEmbedder(endpoint, bearerToken string, client *http.Client) (*HTTPEmbedder, error) + func (e *HTTPEmbedder) Embed(ctx context.Context, content string) ([]float32, error) + type PutInput struct + Content string + ContentType string + Embedding []float32 + EmbeddingSource string + Key string + Namespace string + Provenance map[string]any + RetentionUntil *time.Time + Sensitivity string + SourceAttemptID *uuid.UUID + SourceRunID *uuid.UUID + SourceTaskID *uuid.UUID + TenantID string + type SearchInput struct + Embedding []float32 + Limit int + Namespace string + Query string + Sensitivity string + TenantID string