MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / software_agent_urn

Function software_agent_urn

atomic-cli/src/commands/identity/agent/mod.rs:221–227  ·  view source on GitHub ↗

The `urn:atomic:agent: ` label for a software agent. A URN, never a `did:` — the label names a *kind* of software, not a key. The agent's key has its own DID; conflating the two would put a non-resolvable identifier where a DID is expected.

(slug: &str)

Source from the content-addressed store, hash-verified

219/// The agent's key has its own DID; conflating the two would put a
220/// non-resolvable identifier where a DID is expected.
221pub fn software_agent_urn(slug: &str) -> String {
222 format!(
223 "{}{}",
224 atomic_canonical::delegation::AGENT_URN_PREFIX,
225 slug.trim().to_lowercase()
226 )
227}
228
229/// Render a duration as a short human phrase (`in 30d`, `3d ago`).
230pub fn humanize_remaining(remaining: Option<Duration>) -> String {

Callers 2

executeMethod · 0.85

Calls

no outgoing calls

Tested by 1