# `KapsoEx.Agent.Sessions`
[🔗](https://github.com/rocket4ce/kapso_ex/blob/v0.1.0/lib/kapso_ex/agent/sessions.ex#L1)

Kapso Agent sessions: conversations made of runs. Only sessions created
with the API key in use are visible.

# `result`

```elixir
@type result() :: {:ok, map()} | {:error, KapsoEx.Error.t()}
```

# `get`

```elixir
@spec get(KapsoEx.Client.t(), String.t(), map() | keyword()) :: result()
```

Gets a session and its runs, newest first. Params as in `list/3`.

# `list`

```elixir
@spec list(KapsoEx.Client.t(), String.t(), map() | keyword()) :: result()
```

Lists a mode's sessions, latest activity first. Params: `page`,
`per_page`, `limit`, `before`, `after`.

---

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