Skip to main content

pair_ai_agent

Function pair_ai_agent 

Source
pub fn pair_ai_agent(
    library: &mut Library,
    network: &Network,
    code: &PairingCode,
    name: &str,
    showing: Showing<'_>,
    now: &dyn Fn() -> u64,
    rng: &mut impl CryptoRng,
) -> Result<Paired, NodeError>
Expand description

Pairs a new replica of an AI agent named name, as pair pairs one of the user’s: the change that lists its key marks it as an AI agent’s, for good, and it is named after the AI agent (technical design).

§Errors

Returns the errors of pair, and NodeError::AiAgentMayNot if this replica is an AI agent’s itself.