# `A2UIAgent.Catalogs`
[🔗](https://github.com/a2ui-elixir/a2ui/blob/v0.1.1/umbrella/apps/a2ui_agent/lib/a2ui_agent/catalogs.ex#L1)

Checks on the list of active catalogs that a format, parser or prompt
works with.

# `check`
*since 0.1.0* 

```elixir
@spec check(term()) :: {:ok, [A2UICore.Catalog.t()]} | {:error, A2UICore.Error.t()}
```

Returns `{:ok, catalogs}` when the list is non-empty, its catalog ids
are distinct and every catalog targets the same protocol version.
Otherwise a `:catalog` error.

# `protocol_version`
*since 0.1.0* 

```elixir
@spec protocol_version(A2UICore.Catalog.t()) :: String.t()
```

The canonical protocol version (`"v1.0"`, `"v0.9.1"`, …) a catalog
targets.

---

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