ADK.EventCompaction (ADK v0.0.1-alpha.1)

Copy Markdown View Source

The compaction of the events.

Summary

Functions

Constructs an EventCompaction from a map (string or atom keys).

Types

t()

@type t() :: %ADK.EventCompaction{
  compacted_content: map(),
  end_timestamp: float(),
  start_timestamp: float()
}

Functions

from_map(compaction)

@spec from_map(map() | t() | nil) :: t() | nil

Constructs an EventCompaction from a map (string or atom keys).

Returns nil for nil input, passes through existing structs.