AgentBlueprintProtocol. ExtensionRegistry
(Agent Blueprint Protocol v1.1.0)
Copy Markdown
View Source
This module exposes registered extension namespaces and their lifecycle data.
Use it when inspecting the registry or its federation schema.
This module does not authorize operations.
Example
is_list(AgentBlueprintProtocol.ExtensionRegistry.registered_extensions())
Summary
Types
A registered extension criticality value.
A registry entry returned by lookup.
A registry lifecycle value. Match known values and keep a catch-all branch.
A registered extension lifecycle value.
The public data type for AgentBlueprintProtocol.ExtensionRegistry.
Functions
Returns the digest of the compiled extension registry.
Returns the schema used for Federation extension content.
Returns the registered extension entries.
Types
@type criticality() :: :critical | :optional
A registered extension criticality value.
@type output() :: %AgentBlueprintProtocol.ExtensionRegistry{ a2a_uri: binary(), criticality: criticality(), namespace: binary(), owner: binary(), promoted_at_revision: pos_integer() | nil, schema_digest: binary() | nil, state: output_state() }
A registry entry returned by lookup.
@type output_state() :: atom()
A registry lifecycle value. Match known values and keep a catch-all branch.
@type state() :: :reserved | :active | :deprecated | :retired
A registered extension lifecycle value.
@type t() :: %AgentBlueprintProtocol.ExtensionRegistry{ a2a_uri: binary(), criticality: criticality(), namespace: binary(), owner: binary(), promoted_at_revision: pos_integer() | nil, schema_digest: binary() | nil, state: state() }
The public data type for AgentBlueprintProtocol.ExtensionRegistry.
Functions
@spec digest() :: AgentBlueprintProtocol.Digest.t()
Returns the digest of the compiled extension registry.
Example
iex> match?(%AgentBlueprintProtocol.Digest{algorithm: :sha256, bytes: <<_::256>>}, AgentBlueprintProtocol.ExtensionRegistry.digest())
true
@spec federation_schema() :: AgentBlueprintProtocol.Json.value()
Returns the schema used for Federation extension content.
Example
iex> match?({:object, _}, AgentBlueprintProtocol.ExtensionRegistry.federation_schema())
true
@spec registered_extensions() :: [output()]
Returns the registered extension entries.
Example
iex> Enum.all?(AgentBlueprintProtocol.ExtensionRegistry.registered_extensions(), &is_struct(&1, AgentBlueprintProtocol.ExtensionRegistry))
true