Jido. Memory. Runtime
(Jido Memory v1.0.0)
View Source
Facade API for writing and retrieving memory records.
Works with either:
- agent/context inputs that already carry memory plugin state, or
- explicit
namespaceand optionalprovideroptions for non-plugin callers.
Summary
Functions
Returns the canonical capability set for the active provider.
Runs canonical lifecycle consolidation when supported by the provider.
Returns a canonical retrieval explanation when supported by the provider.
Deletes a memory record by id and returns whether it existed.
Reads a single memory record by id.
Returns canonical provider metadata.
Returns provider metadata, optionally filtered to selected fields.
Runs canonical ingestion when supported by the provider.
Returns the plugin state key used for memory metadata.
Prunes expired records in the active store.
Writes a memory record.
Infers provider and provider options for plugin and action code paths.
Canonical retrieval entrypoint that delegates through provider.
Types
Functions
@spec capabilities( target(), keyword() ) :: {:ok, Jido.Memory.CapabilitySet.t()} | {:error, term()}
Returns the canonical capability set for the active provider.
@spec consolidate( target(), keyword() ) :: {:ok, Jido.Memory.ConsolidationResult.t()} | {:error, term()}
Runs canonical lifecycle consolidation when supported by the provider.
@spec explain_retrieval( target(), Jido.Memory.Query.t() | map() | keyword(), keyword() ) :: {:ok, Jido.Memory.Explanation.t()} | {:error, term()}
Returns a canonical retrieval explanation when supported by the provider.
Deletes a memory record by id and returns whether it existed.
@spec get(target(), String.t(), keyword()) :: {:ok, Jido.Memory.Record.t()} | {:error, term()}
Reads a single memory record by id.
@spec info( target(), keyword() ) :: {:ok, Jido.Memory.ProviderInfo.t()} | {:error, term()}
Returns canonical provider metadata.
@spec info(target(), keyword(), :all | [atom()]) :: {:ok, Jido.Memory.ProviderInfo.t() | map()} | {:error, term()}
Returns provider metadata, optionally filtered to selected fields.
@spec ingest(target(), map() | keyword(), keyword()) :: {:ok, Jido.Memory.IngestResult.t()} | {:error, term()}
Runs canonical ingestion when supported by the provider.
@spec plugin_state_key() :: atom()
Returns the plugin state key used for memory metadata.
@spec prune_expired( target(), keyword() ) :: {:ok, non_neg_integer()} | {:error, term()}
Prunes expired records in the active store.
@spec remember(target(), map() | keyword(), keyword()) :: {:ok, Jido.Memory.Record.t()} | {:error, term()}
Writes a memory record.
@spec resolve_provider(target(), map(), keyword()) :: {:ok, {module(), keyword()}} | {:error, term()}
Infers provider and provider options for plugin and action code paths.
@spec retrieve(target(), Jido.Memory.Query.t() | map() | keyword(), keyword()) :: {:ok, Jido.Memory.RetrieveResult.t()} | {:error, term()}
Canonical retrieval entrypoint that delegates through provider.