# `ADK.EventCompaction`
[🔗](https://github.com/zeroasterisk/adk-elixir/blob/main/lib/adk/event_compaction.ex#L1)

The compaction of the events.

# `t`

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

# `from_map`

```elixir
@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.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
