Skip to main content
Version: 0.0.10 (stable)

agrag.common.data_models.task.Event

Bases: BaseModel

One raw event appended to a task.

Attributes:

  • id (UUID) – Identifier derived from the task id and the sequence number.
  • task_id (UUID) – The task the event belongs to.
  • sequence (int) – Gapless position of the event in its task, starting at 1.
  • kind (EventKind) – Kind of event.
  • role (str | None) – Speaker role for a message, or None.
  • tool_name (str | None) – Tool or source name for a tool event, or None.
  • payload (str) – Stored event text. Cut to the payload limit when truncated is true, and replaced with the redaction marker after redaction.
  • payload_sha256 (str) – SHA-256 of the full text, before any cut.
  • truncated (bool) – Whether the stored payload is shorter than the full text.
  • author (str) – The agent that recorded the event.
  • recorded_at (datetime) – When the event was recorded.
  • redacted_at (datetime | None) – When the payload was redacted, or None while available.

author​

author: str

id​

id: UUID

kind​

kind: EventKind

model_config​

model_config = ConfigDict(frozen=True)

payload​

payload: str

payload_sha256​

payload_sha256: str

recorded_at​

recorded_at: datetime

redacted_at​

redacted_at: datetime | None = None

role​

role: str | None

sequence​

sequence: int

task_id​

task_id: UUID

tool_name​

tool_name: str | None

truncated​

truncated: bool