pub fn register<T: Config>(
agent_key: <T as Config>::AccountId,
name: Vec<u8>,
url: Vec<u8>,
metadata: Vec<u8>,
) -> DispatchResultExpand description
Register an agent to the given key, payed by the payer key.
If the network is full, this function will drop enough agents until there’s
at least one slot (see [find_agent_to_prune]). Fails if no agents were
eligible for pruning.
Registration fee is stored as crate::Burn.