Durable external_id -> upstream identity map over a Store. Reads and writes
Locator.Record rows; translates the store's :miss (and any non-Record
value found in a shared store) to the caller-facing :error.
Summary
Functions
Delete a persisted transcript (record-removal cleanup).
Fetch a persisted transcript. :miss when none was stored.
Persist a session transcript under the sibling key {:transcript, external_id}.
Types
@type external_id() :: String.t()
Functions
@spec delete_transcript(ReqManagedAgents.Host.Store.store(), external_id()) :: :ok
Delete a persisted transcript (record-removal cleanup).
@spec fetch(ReqManagedAgents.Host.Store.store(), external_id()) :: {:ok, ReqManagedAgents.Host.Locator.Record.t()} | :error
@spec fetch_transcript(ReqManagedAgents.Host.Store.store(), external_id()) :: {:ok, [map()]} | :miss
Fetch a persisted transcript. :miss when none was stored.
@spec list(ReqManagedAgents.Host.Store.store()) :: [ ReqManagedAgents.Host.Locator.Record.t() ]
@spec list_by(ReqManagedAgents.Host.Store.store(), map()) :: [ ReqManagedAgents.Host.Locator.Record.t() ]
@spec mark_context_sent(ReqManagedAgents.Host.Store.store(), external_id()) :: :ok | :error
@spec put( ReqManagedAgents.Host.Store.store(), ReqManagedAgents.Host.Locator.Record.t() ) :: :ok
@spec put_transcript(ReqManagedAgents.Host.Store.store(), external_id(), [map()]) :: :ok
Persist a session transcript under the sibling key {:transcript, external_id}.
@spec set_status( ReqManagedAgents.Host.Store.store(), external_id(), ReqManagedAgents.Host.Locator.Record.status() ) :: :ok | :error