Skip to main content
Version: latest

agrag.memory.tasks.BoundedPayload

Bases: NamedTuple

An event payload cut to the storage limit.

Attributes:

  • payload (str) – The stored text, at most MAX_PAYLOAD_CHARACTERS long.
  • truncated (bool) – Whether the stored text is shorter than the full text.
  • payload_sha256 (str) – SHA-256 of the full text, encoded as UTF-8.

payload​

payload: str

payload_sha256​

payload_sha256: str

truncated​

truncated: bool