Data contracts and runtime helpers for visible agent memory.
Summary
Functions
Captures a completed turn into memory when the spec enables conversation capture.
Recalls visible memory for a spec/request pair.
Writes one visible memory entry using the spec's memory policy.
Types
@type entry() :: Jidoka.Memory.Entry.t()
@type recall_request() :: Jidoka.Memory.RecallRequest.t()
@type recall_result() :: Jidoka.Memory.RecallResult.t()
@type write_request() :: Jidoka.Memory.WriteRequest.t()
@type write_result() :: Jidoka.Memory.WriteResult.t()
Functions
@spec capture_turn( Jidoka.Agent.Spec.t(), Jidoka.Turn.Request.t(), Jidoka.Turn.Result.t(), keyword() ) :: {:ok, write_result() | nil} | {:error, term()}
Captures a completed turn into memory when the spec enables conversation capture.
@spec recall(Jidoka.Agent.Spec.t(), Jidoka.Turn.Request.t(), keyword()) :: {:ok, recall_result() | nil} | {:error, term()}
Recalls visible memory for a spec/request pair.
This is the public facade over the runtime memory policy: it applies the spec's memory scope, namespace, session id, and max-entry settings before calling the configured memory store.
@spec write(Jidoka.Agent.Spec.t(), String.t(), keyword()) :: {:ok, write_result()} | {:error, term()}
Writes one visible memory entry using the spec's memory policy.