Documentation
¶
Overview ¶
Package memory is the public SDK facade over Harbor's internal/memory package — the cumulative session-memory administrative surface and its committed source projections (RFC §3.6, §6.6). Alias-based re-exports only: no behavior lives here. Driver factories, event emission helpers, and Protocol wire projections are deliberately private.
Index ¶
Constants ¶
const ( // HealthHealthy — the store is fully operational. HealthHealthy = internal.HealthHealthy // HealthRetry — transient failures; retrying. HealthRetry = internal.HealthRetry // HealthDegraded — the store is degraded. HealthDegraded = internal.HealthDegraded // HealthRecovering — the store is recovering. HealthRecovering = internal.HealthRecovering )
Health values.
const ( // StrategyNone explicitly disables session memory. StrategyNone = internal.StrategyNone // StrategyRollingSummary — LLM-backed rolling summarisation. StrategyRollingSummary = internal.StrategyRollingSummary )
Strategy values.
const DefaultDriver = internal.DefaultDriver
DefaultDriver is the driver name Open resolves when the config names none.
Variables ¶
var ( // ErrInvalidInspection rejects malformed committed memory projections. ErrInvalidInspection = internal.ErrInvalidInspection // ErrNotFound — no record under that key. ErrNotFound = internal.ErrNotFound // ErrIdentityRequired — the identity triple is incomplete. ErrIdentityRequired = internal.ErrIdentityRequired // ErrUnknownDriver — the named memory driver is not registered. ErrUnknownDriver = internal.ErrUnknownDriver // ErrStoreClosed — the store has been closed. ErrStoreClosed = internal.ErrStoreClosed )
Re-exported sentinel errors callers compare via errors.Is.
var From = internal.From
From extracts the store from ctx, reporting presence.
var MustFrom = internal.MustFrom
MustFrom extracts the store from ctx, panicking when absent.
var Open = internal.Open
Open resolves the configured memory driver and opens it.
var OpenDriver = internal.OpenDriver
OpenDriver opens a memory driver by explicit name.
var RegisteredDrivers = internal.RegisteredDrivers
RegisteredDrivers lists the seated memory driver names (blank-import sdk/drivers/prod to seat the production set).
var SnapshotFromConfig = internal.SnapshotFromConfig
SnapshotFromConfig projects the operator config block into the resolved ConfigSnapshot Open consumes.
var WithStore = internal.WithStore
WithStore returns a child context carrying the store.
Functions ¶
This section is empty.
Types ¶
type ConfigSnapshot ¶
type ConfigSnapshot = internal.ConfigSnapshot
ConfigSnapshot is the resolved memory configuration.
type ConversationTurn ¶
type ConversationTurn = internal.ConversationTurn
ConversationTurn is an administrator-supplied conversational note.
type Inspection ¶ added in v1.32.0
type Inspection = internal.Inspection
Inspection is the bounded administrative view of execution memory.
type MemoryStore ¶
type MemoryStore = internal.MemoryStore
MemoryStore is the identity-mandatory memory store interface.