# `Wardrik.Timeline`

An agent's conversation as a person reads it, oldest first.

Each of `items` is the protocol's map of a message (`kind` `"user"`) or of a run with its steps
(`kind` `"run"`).

# `t`

```elixir
@type t() :: %Wardrik.Timeline{cursor: term(), items: term()}
```

# `from_json`

```elixir
@spec from_json(map()) :: t()
```

Builds one from the protocol's JSON.

# `to_json`

```elixir
@spec to_json(t()) :: map()
```

Returns it as the protocol's JSON, without fields that are `nil`.

---

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