A2UIAgent.Catalogs (A2UIAgent v0.1.1)

Copy Markdown View Source

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

Summary

Functions

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.

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

Functions

check(catalogs)

(since 0.1.0)
@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(catalog)

(since 0.1.0)
@spec protocol_version(A2UICore.Catalog.t()) :: String.t()

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