ExAgent.Server.Snapshot (ExAgent v2.0.1)

View Source

Version 4 checkpoint of conversational data, with bounded readers for v1/v2/v3.

Restores confirmed history and usage, not live models, tasks or external effects. The app supplies the live template. JSON rejects non-encodable values but does not redact secrets contained in messages, metadata or provider data.

Summary

Functions

Validate snapshots returned by any Store, including custom implementations.

Types

t()

@type t() :: %ExAgent.Server.Snapshot{
  agent_id: term(),
  message_history: term(),
  metadata: term(),
  provider_state: term(),
  revision: term(),
  saved_at: term(),
  usage: term(),
  version: term()
}

Functions

deserialize(binary)

messages(arg1)

new(opts)

serialize(snapshot)

usage_struct(snapshot)

validate(snapshot, expected_id)

Validate snapshots returned by any Store, including custom implementations.