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.

t()

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

criticality()

(since 1.0.0)
@type criticality() :: :critical | :optional

A registered extension criticality value.

output()

(since 1.0.0)
@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.

output_state()

(since 1.0.0)
@type output_state() :: atom()

A registry lifecycle value. Match known values and keep a catch-all branch.

state()

(since 1.0.0)
@type state() :: :reserved | :active | :deprecated | :retired

A registered extension lifecycle value.

t()

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

digest()

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

federation_schema()

(since 1.0.0)
@spec federation_schema() :: AgentBlueprintProtocol.Json.value()

Returns the schema used for Federation extension content.

Example

iex> match?({:object, _}, AgentBlueprintProtocol.ExtensionRegistry.federation_schema())
true

registered_extensions()

(since 1.0.0)
@spec registered_extensions() :: [output()]

Returns the registered extension entries.

Example

iex> Enum.all?(AgentBlueprintProtocol.ExtensionRegistry.registered_extensions(), &is_struct(&1, AgentBlueprintProtocol.ExtensionRegistry))
true